handleSubmit(){ var name = ReactDOM.findDOMNode(this.refs.name).value.trim(); var email = ReactDOM.findDOMNode(this.refs.email).value.trim(); // do something }
// Export => Accept importing // Default => This class will be called default when it is imported exportdefaultclassComp1extendsReact.Component{ render() { return ( Comp 1. </div> ); } }
// Manually bind, wherever you need to classPostInfoextendsReact.Component{ constructor(props) { super(props); // Manually bind this method to the component instance... this.handleOptionsButtonClick = this.handleOptionsButtonClick.bind(this); } handleOptionsButtonClick(e) { // ...to ensure that 'this' refers to the component instance here. this.setState({showOptionsModal: true}); } }
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!