The more buttons and functions, the more unmaintainable it will be with one single file in future.
It would also be nice to have different example styles for the buttons (with optional FontAwesome icons for instance). This would lead to an easier integration for new react users.
I'd also propose to switch to ES6 syntax in that step.
How about structuring the components into separate files?
I'd go with this directory structure:
.. and so on. What do you think?
The more buttons and functions, the more unmaintainable it will be with one single file in future.
It would also be nice to have different example styles for the buttons (with optional FontAwesome icons for instance). This would lead to an easier integration for new react users.
I'd also propose to switch to ES6 syntax in that step.