0.0.1 ā€¢ Published 6 years ago

@ctbucha/bs-react-split-pane v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

bs-react-split-pane

BuckleScript bindings for react-split-pane.

Status

šŸš§ This is a WIP, not everything is supported yet. šŸš§

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>
    ),
};