The most useful piece of advice I’ve heard for designing reusable React...


The most useful piece of advice I’ve heard for designing reusable React components:

Use popular libraries as inspiration.

Before implementing my own Table, Select, Tabs, etc, I look at the APIs of popular libraries like MaterialUI, Ant Design, and Spectrum.

#react
These libraries have been used by 1000's. Their APIs have been carefully thought through, and heavily vetted.

So while the API may not be perfect for my team's needs, it's likely a solid starting point.
Oh, and these days, there are so many React components out there that there's likely something out there that suits most your needs.

Just look at this crazy long list: https://github.com/brillout/awesome-react-components

View original on X