🎤 Simply React
- 👤 Kent C. Dodds
- Twitter: @kentcdodds
- GitHub: kentcdodds
- Web: https://kentcdodds.com/
📹
Video:
https://youtu.be/AiJ8tRRH0f8
Don't you love how easy it is to encapsulate UI code into a React component? I do! Despite this, making those same components reusable can be a challenge. Our components often start simple, but then they have to adapt as unforeseen use cases come up. This often results in a growing list of props and complex implementation full of if statements and a confusing API. An inevitable rewrite of the component eventually hits and now we have two problems.Let's take a step back and consider some things we can do upfront to keep our components flexible, simple, and optimized for inevitable change.
This page was generated from this YAML file. Found a typo, want to add some data? Just edit it on GitHub.