react-split-pane icon indicating copy to clipboard operation
react-split-pane copied to clipboard

Migrate codebase to React Hooks

Open NMinhNguyen opened this issue 6 years ago • 1 comments
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

NMinhNguyen avatar Apr 27 '19 01:04 NMinhNguyen

Here is a simple hook. https://gist.github.com/crossjs/21c4b10c391298cf874c6eb4e27f5319

vvenv avatar Aug 19 '21 00:08 vvenv