Earlier this week React 16 got released β¦ yay! π
To explain all the new features, Nik Graf has posted a short series on React 16 over at Egghead. The videos are free to watch and only take up 17 minutes of your time.
Next to things like Fiber, Error Boundaries, and Returning arrays from render()
that get me excited, the video series also covers how to render components into DOM elements other than the React root (using ReactDOM.createPortal();
), and explains that it’s possible to return null
from setState(() => { β¦ })
to prevent updates being triggered.