react-split-pane
react-split-pane copied to clipboard
Migrate codebase to React Hooks
trafficstars
Is your feature request related to a problem? Please describe.
Would you be interested in converting the codebase to Hooks and bumping the minimum React version? I’m happy to PR it if there’s a desire.
Describe the solution you'd like
Refactor existing components to use Hooks. The immediate benefits are better tree shaking and bundle size (classes often result in lots of bloat after transpiling), as well as performance (although this point is probably the weakest, as it’s probably quite negligible anyway)
Describe alternatives you've considered
N/A
Additional context
https://www.reactjs.org/hooks
Here is a simple hook. https://gist.github.com/crossjs/21c4b10c391298cf874c6eb4e27f5319