Official Plugin
View plugin on GitHubgatsby-plugin-react-next
Use React 16 with your Gatsby v1 site! Gatsby v1 ships with React 15 by default so install this plugin to start using React 16 in your sites. It automatically includes the two recommended polyfills for ES6 map/set so adding this to your site is drop-in upgrade to React 16.
Install
npm install --save gatsby-plugin-react-next
How to use
Add the plugin to your gatsby-config.js
.
plugins: [`gatsby-plugin-react-next`];