You don't need to import React anymore. Say good bye to:
Provides to all of your components React instances.
$ npm i gatsby-plugin-provide-react
$ yarn add gatsby-plugin-provide-react
How to use
Add the plugin to your
If you are getting:
error 'React' must be in scope when using JSX
You need to create an empty
.eslintrc in root of your folder. This error occurs from eslint.
If you are using eslint in your project, just update this key to your config: