react-split-it

Click here for documentation
This is the simplest example of a computeNewSizes function but it is incomplete because it does not check for minimum sizes or even size < 0. To see the issue drag a gutter past any other gutter. For more info see the docs.