bs-react-split-pane
BuckleScript bindings for react-split-pane.
Status
Feel free to create an issue or PR if you find anything missing.
Installation
npm install --save @ctbucha/bs-react-split-pane
Then add @ctbucha/bs-react-split-pane
to bs-dependencies
in your
bsconfig.json
:
{
...
"bs-dependencies": ["@ctbucha/bs-react-split-pane"]
}
Usage
/* App.re */
let component = ReasonReact.statelessComponent("App");
let make = _children => {
...component,
render: _self =>
BsSplitPane.(
<SplitPane size=100 split=`horizontal>
<div> (ReasonReact.string("first div")) </div>
<div> (ReasonReact.string("second div")) </div>
</SplitPane>
),
};