Skip to content

Commit

Permalink
Merge pull request reduxjs#4151 from itsmedmd/patch-1
Browse files Browse the repository at this point in the history
[Tutorial Docs] Fixing a grammar mistake
  • Loading branch information
markerikson authored Aug 18, 2021
2 parents ca9463d + 0e95fce commit b44c455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/fundamentals/part-5-ui-and-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export default Header

Our components can now read state from the store, and dispatch actions to the store. However, we're still missing something. Where and how are the React-Redux hooks finding the right Redux store? A hook is a JS function, so it can't automatically import a store from `store.js` by itself.

Instead, we have to specifically tell React-Redux what store we want to use in our components. We do this by **rendering a `<Provider>` component around our entire `<App>`, and passing the Redux store as a prop to `<Provider>`**. After we do this once, every component in the application will be able to access the Redux store if needs to.
Instead, we have to specifically tell React-Redux what store we want to use in our components. We do this by **rendering a `<Provider>` component around our entire `<App>`, and passing the Redux store as a prop to `<Provider>`**. After we do this once, every component in the application will be able to access the Redux store if it needs to.

Let's add that to our main `index.js` file:

Expand Down

0 comments on commit b44c455

Please sign in to comment.