React 17.0 — The news is that there is no news

Discover the new version change of ReactJS and why there is no news at the moment

Gradual updates

Changes to the event system

<button onClick={handleClick}>
someButton.addEventListener('click', handleClick);
const rootNode = document.getElementById('root');
ReactDOM.render(<App />, rootNode);// React < 17
document.addEventListener()// React >= 17
rootNode.addEventListener()

useEffect cleanUp

useEffect(function() {
...
return function cleanUp() {
// Its cleanup
};
});

More “minor” changes

Do you want to try React 17?

yarn add react@17.0.0-rc.0 react-dom@17.0.0-rc.0

Final thoughts

Entre paseo y paseo con Simba desarrollo en Symfony y React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store