Add import for React

Without React, the code throws the following error:
`'React' must be in scope when using JSX  react/react-in-jsx-scope`
This commit is contained in:
Bill Fienberg
2019-03-03 02:23:48 -06:00
committed by GitHub
parent 20df5cc0c9
commit d5981645f8

View File

@@ -131,6 +131,7 @@ Open `src/index.js` and add the following lines of code:
_src/index.js_
```js lines=1,4,6
import React from "react";
import ReactDOM from 'react-dom';
import { ApolloProvider } from 'react-apollo';