function App(props) { return <div>Hello {props.name}</div>; }
ReactDOM.render( <App name="nichochar" />, document.getElementById('root') );
Or the alternative component API that has componentWillMount, componentDidMount, componentWillReceiveProps, shouldComponentUpdate, componentDidUpdate, componentWillUnmount, and render.
That's pretty much all there is
function App(props) { return <div>Hello {props.name}</div>; }
ReactDOM.render( <App name="nichochar" />, document.getElementById('root') );
Or the alternative component API that has componentWillMount, componentDidMount, componentWillReceiveProps, shouldComponentUpdate, componentDidUpdate, componentWillUnmount, and render.
That's pretty much all there is