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:
Blog: https://jb.gg/j927y6
Website: https://jb.gg/b8vuc5
Twitter: / webstormide
Tips and Tricks: https://www.jetbrains.com/webstorm/guide
Category: #webstorm, #webstormtutorial, #javascript
On this page of the site you can watch the video online 10/10 React, TypeScript, and TDD Tutorial: Presentation Components with a duration of hours minute second in good quality, which was uploaded by the user JetBrains 27 January 2021, share the link with friends and acquaintances, this video has already been watched 1,727 times on youtube and it was liked by 47 viewers. Enjoy your viewing!