Skip to content

Commit

Permalink
Update part6a.md
Browse files Browse the repository at this point in the history
I think this line is a bit misleading? Makes it sound like the store Provider only works for the immediate child component (App) and then must be prop drilled, rather than it providing the store to all components anywhere in the component tree it wraps.
  • Loading branch information
2underscores authored Nov 27, 2024
1 parent 7e4db6c commit 368f90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/6/en/part6a.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ export const toggleImportanceOf = (id) => { // highlight-line
export default noteReducer
```

If the application has many components which need the store, the <i>App</i> component must pass <i>store</i> as props to all of those components.
Previously, if the application had many components which needed the store, the <i>App</i> component had to pass <i>store</i> as props to all of those components (known as prop drilling). Now with the <i>store</i> Provider wrapping the <i>App</i> component, the <i>store</i> is directly accessible to all components within the <i>App</i> component without explicitly being passed as props.

The module now has multiple [export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export) commands.

Expand Down

0 comments on commit 368f90c

Please sign in to comment.