10/10 React, TypeScript, and TDD Tutorial: Presentation Components

preview_player
Показать описание
Follow the React pattern of container/presentation components by refactoring the code and tests.

Contents:
00:23 - Convert the Counter into stateless functional component
03:12 - Pass in a click handler function
08:30 - Simplify the connection between parent and child component
10:14 - Update the main App component to manage the state and provide handler
12:58 - Write tests to confirm App handles clicks and state

Learn more and join us:

Category: #webstorm, #webstormtutorial, #javascript
Рекомендации по теме
Комментарии
Автор

This was a fantastic series! First time using webstorm or ttd testing and really psyched about it. I think I'll be coming back to this in the future. Thanks!

ericgregory
Автор

but to say you need to have a class for a stateful component in 2021... misleading. otherwise spot on plug for intellij.

adicide