VersionDownloadsDocumentationLicense: MITTwitter: rajinwonderland
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 class HelloMessage extends React.Component { handlePress = () => { alert('Hello') } render() { return ( <div> <p>Hello {this.props.name}</p> <button onClick={this.handlePress}>Say Hello</button> </div> ); } } ReactDOM.render( <HelloMessage name="Taylor" />, mountNode );

v := Vertex{X: 1, Y: 2}