Skip to content

Commit

Permalink
Merge pull request #3887 from 2underscores/patch-1
Browse files Browse the repository at this point in the history
Update part6a.md
  • Loading branch information
mluukkai authored Nov 28, 2024
2 parents 7e4db6c + 368f90c commit f63d971
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 f63d971

Please sign in to comment.