This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
Learn more
); } }); ReactDOM.render( , document.getElementByTagName('body') );{ this.props.description }
Learn more
); } }); var propsDescription = "You can use props to pass any information down the component hierarchy. You can use any js types as props." ReactDOM.render( , document.getElementByTagName('body') ); Props in Action{ this.props.description }
Learn more
); } }); HeroUnit.propTypes = { heading: React.PropTypes.string, description: React.PropTypes.string }; var propsDescription = "You can use props to pass any information down the component hierarchy. You can use any js types as props." ReactDOM.render( , document.getElementByTagName('body') ); Defining PropTypes{ this.state.count }
); } }); ReactDOM.render( , document.getElementById('app') );You clicked me { this.state.clickedCount } times