- Collection types
Map
andSet
window.requestAnimationFrame
function
react-with-addons.js
is removedReact.createClass
replaced withcreate-react-class
React.PropTypes as prop-types
replaced withprop-types
ReactDOM.render()
call inside a lifecycle method will no longer work- Shallow renderer no longer calls
componentDidUpdate()
- Errors in the render and lifecycle methods now unmount the component tree. Error boundaries will be required
- React portals: Render subtree on a DOM node outside Component context. Useful for rendering modals (CSS of parent Component will not be applicable to components rendered outside).
- Components can return arrays as children. Useful for Components that render list items
- React Fragments: Component can return multiple children (different from returning an array, as array items need keys)
- Stack Trace is now supported. With this plugin on development side, debugging should be easier.
Detailed changelog here