3 ms·
Cool, learning React at the mo so this is appreciated. You can remove all those autoBinds now [1] right? [1] http://facebook.github.io/react/blog/2013/07/02/re
by nilliams 13y ago
Cool, learning React at the mo so this is appreciated. You can remove all those autoBinds now [1] right?
[1] http://facebook.github.io/react/blog/2013/07/02/react-v0-4-autobind-by-default.html http://facebook.github.io/react/blog/2013/07/02/react-v0-4-a...
- vjeux 13y agoYes, autoBind are done by default now. Also, you need to replace `class` by `className` in JSX. You can also take the advantage of getDefaultProps() instead of doing `this.props.something || 12` everywhere.