Let's say that you have a card component that looks like this: You could use this card on something like a dashboard and give it a unique header and icon to allow the user to differentiate what is being displayed. A common way to design this compon...
Markdown supported · ⌘↵ to post
Ozzie Neher
Very nice! I think though the function will run anytime the app rerenders so you may want to use React.useMemo in some cases ☺️
Lucas Rinaldi
Good improvement of the API.
Just a warning about calling components as function. kentcdodds.com/blog/dont-call-a-react-function-co…