Last active
January 18, 2017 08:47
-
-
Save leefsmp/a89beb85548b4d0889baeb497e1f75a8 to your computer and use it in GitHub Desktop.
Re-Flex Demo basic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ReactDOM from 'react-dom' | |
import React from 'react' | |
import { | |
ReflexContainer, | |
ReflexSplitter, | |
ReflexElement | |
} from 'react-reflex' | |
///////////////////////////////////////////////////////// | |
// Re-Flex Basic vertical layout non-resizable | |
// | |
///////////////////////////////////////////////////////// | |
class ReflexBasicDemo | |
extends React.Component { | |
render () { | |
return ( | |
<ReflexContainer orientation="vertical"> | |
<ReflexElement className="left-pane"> | |
<div className="pane-content"> | |
<label> | |
Left Pane (fixed) | |
</label> | |
</div> | |
</ReflexElement> | |
<ReflexElement className="right-pane"> | |
<div className="pane-content"> | |
<label> | |
Right Pane (fixed) | |
</label> | |
</div> | |
</ReflexElement> | |
</ReflexContainer> | |
) | |
} | |
} | |
ReactDOM.render( | |
<ReflexBasicDemo/>, | |
document.getElementById('demo-basic')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment