title: React: Invalid hook call error when i tried wrap App component with Provider
body: <p>I am new to React and Redux. I try to learn redux structure. I have a store. I added Provider component to <em>index.js</em>
  Now, I try wrap App component with Provider. Then pass store to Provider in index.js But I get a typical error which is </p>
  
  <p>Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app</p>
  
  <p>My index.js file:</p>
  
  <pre><code>import React from "react";
  import ReactDOM from "react-dom";
  import "./index.css";
  import App from "./App";
  import * as serviceWorker from "./serviceWorker";
  import { createStore } from "redux";
  import { Provider } from "react-redux";
  import reducer from "./store/reducer";
  
  const store = createStore(reducer);
  ReactDOM.render(
      &lt;Provider store={store}&gt; //error show this line
          &lt;App /&gt;
      &lt;/Provider&gt;,
      document.getElementById("root")
  );
  
  serviceWorker.unregister();
  
  </code></pre>
  
  <p>Also, my reducer.js</p>
  
  <pre><code>const initialState = {
      code: "initial", //my state which is using in component
  };
  
  const reducer = (state = initialState, action) =&gt; {
      return state;
  };
  
  export default reducer;
  
  </code></pre>
  
  <p>Help me, please.</p>