import React from 'react';
import SplitPane, {Pane} from 'melon-split-pane';
import ReactDOM from 'react-dom';
import './index.styl';
ReactDOM.render(
<SplitPane direction="horizontal">
<Pane basis={100} grow={1} shrink={0} min={200} max={500}>a</Pane>
<Pane>b</Pane>
<Pane>c</Pane>
</SplitPane>,
document.getElementById('app')
);
-
please check out this first.
-
npm install -S melon-split-pane
-
bower install -S melon-split-pane
-
config your
requirejs
/esl
require.config({ paths: { 'melon-split-pane': 'bower_components/melon-split-pane/lib/SplitPane' } });
check this out
git clone git@github.com:react-melon/melon-split-pane.git
cd melon-split-pane
npm install
npm start
open http://localhost:8080/example
Big thanks to BrowserStack for multiple-browsers automation testing!