Introduction Following good practices allows you to write better code, React is no exception, and after writing button components for every project I have worked on, this is, in my opinion, the best approach for a reusable button component. NOTE: Th...

Markdown supported · ⌘↵ to post
Nicolas Barlatier
Did you use Typescript?
React.FC<ButtonProps>This code says you do. In that case, we need to know how to have VS Code and React with typescript.