by problems · 9y ago · 0 comments
For example, here's a React 'collapse' component, as people commonly use for accordions.
https://gist.github.com/JonathonAshworth/b401810b965149348d0...
It has 1/10th the code of rc-collapse (the 'go-to' solution it seems), and 4 less dependencies. And it's simple enough that basically any competent Javascript programmer can edit the code if they want slightly different functionality.
Importing NPM modules for this stuff is madness