Skip to content

Commit 368f90c

Browse files
authored
Update part6a.md
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.
1 parent 7e4db6c commit 368f90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/6/en/part6a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ export const toggleImportanceOf = (id) => { // highlight-line
967967
export default noteReducer
968968
```
969969

970-
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.
970+
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.
971971

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

0 commit comments

Comments
 (0)