mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-05-28 23:31:07 +08:00
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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user