Intermediate Javascript : Closures, Callbacks, this, map,filter,reduce,object ES6 : • object literal and template strings • Block scopes and let/const vs var • Arrow functions • Destructuring and default/rest/spread. • Classes and inheritance • Imports and exports of modules
{props.name} </p> </div>) ReactDOM.render( <MyComponent name=“bodat”/>,container) How to Create Component It’s Just a simple function Now you can render it
: {props.name} </p></div>) var myAction=function(){ alert(“Oh I’m clicked”) } ReactDOM.render( <MyComponent name=“bodat” onAction={myAction} How to Create Component It’s Just a simple function Now you can render it
<p onClick={this.props.clickAction}> This is my Component called :{this.props.name} </p> </div>) var myAction=function(){ alert(“Oh I’m clicked”) } ReactDOM.render( <MyComponent name=“bodat” clickAction={myAction} How to Create Component Class Component Now you can render it