It's commonly said that React is "just JavaScript". This means that for those with a solid knowledge of JavaScript, understanding React should be easy.
This talk covers things you absolutely have to know about JavaScript in order to work with React.
someHandler() { this.setState(...) } inherits property and behavior from parents in the inheritance chain NOT defined in HelloMessage, but inherited from parent
{ ... } componentDidMount() { this.interval = setInterval(() => this.tick(), 1000); } ... } arrow functions keep the value of this to the context of its enclosing function the object which componentDidMount() belongs to a callback function
import ReactDOM from 'react-dom'; import HelloMessage from './Hello'; ReactDOM.render( <HelloMessage name="Taylor" />, mountNode ); The Renderer npm modules local module