Tuesday, December 13, 2016

react.js

https://www.safaribooksonline.com/library/view/reactjs-fundamentals-and/9780134688671/

https://www.safaribooksonline.com/library/view/advanced-reactjs-livelessons/9780134676920/

getInitialState() will make it available as this.state
multiple apps in one page
return inside render is same as createElement
return () pattern is required since in the parenthesis you don't have to worry about multiple lines
promise in ES6 - reject/resolve will tie to catch/then

lifecycle methods - componentDidMount componentWillMount componentDidUnMount

higher order component - not clear
propTypes - good for types/validation

performance improvement => shouldComponentUpdate/add key to siblings

No comments:

Blog Archive