'use strict'; import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; const CollapsibleParagraph = React.createClass({ propTypes: { title: React.PropTypes.string, children: React.PropTypes.oneOfType([ React.PropTypes.object, React.PropTypes.array ]), iconName: React.PropTypes.string }, getDefaultProps() { return { show: false }; }, getInitialState() { return { expanded: false }; }, handleToggle(e){ e.preventDefault(); this.setState({expanded: !this.state.expanded}); }, render() { let text = this.state.expanded ? '-' : '+'; if(this.props.show) { return (