Skip to content

Instantly share code, notes, and snippets.

@6ewis
Created April 1, 2016 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 6ewis/4974858be3b0a24bbeed1a8fbbade3be to your computer and use it in GitHub Desktop.
Save 6ewis/4974858be3b0a24bbeed1a8fbbade3be to your computer and use it in GitHub Desktop.
const accordionInstance = (
<Accordion>
<Panel header="Collapsible Group Item #1" eventKey="1">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</Panel>
<Panel header="Collapsible Group Item #2" eventKey="2">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</Panel>
<Panel header={"test"} eventKey={"3"}>
{React.createElement(React.createClass({
getInitialState: function() {
return {term: "test"};
},
handleChange: function(event) {
this.setState({term: event.target.value});
},
render: function() {
return (
<input value={this.state.term} onChange={this.handleChange}></input>
);
}
}))}
</Panel>
</Accordion>
);
ReactDOM.render(accordionInstance, mountNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment