Skip to content

Commit 667deb5

Browse files
authored
Update part7b.md
Removed link to [old React Router page on hooks](https://reacttraining.com/react-router/web/api/Hooks) because the content no longer exists. The [new docs](https://reactrouter.com/en/main) do not have a route to an overview of hooks because documentation for each hook is directly accessible via the sidebar. Since the link to the new docs are already embedded earlier in the sentence, this link is no longer necessary.
1 parent f22e52c commit 667deb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/7/en/part7b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In [part 5](/en/part5/props_children_and_proptypes#references-to-components-with
1919

2020
Within the last couple of years, many React libraries have begun to offer hook-based APIs. [In part 6](/en/part6/flux_architecture_and_redux) we used the [useSelector](https://react-redux.js.org/api/hooks#useselector) and [useDispatch](https://react-redux.js.org/api/hooks#usedispatch) hooks from the react-redux library to share our redux-store and dispatch function to our components.
2121

22-
The [React Router's](https://reactrouter.com/en/main/start/tutorial) API we introduced in the [previous part](/en/part7/react_router) is also partially [hook](https://reacttraining.com/react-router/web/api/Hooks)-based. Its hooks can be used to access URL parameters and the <i>navigation</i> object, which allows for manipulating the browser URL programmatically.
22+
The [React Router's](https://reactrouter.com/en/main/start/tutorial) API we introduced in the [previous part](/en/part7/react_router) is also partially hook-based. Its hooks can be used to access URL parameters and the <i>navigation</i> object, which allows for manipulating the browser URL programmatically.
2323

2424
As mentioned in [part 1](/en/part1/a_more_complex_state_debugging_react_apps#rules-of-hooks), hooks are not normal functions, and when using those we have to adhere to certain [rules or limitations](https://reactjs.org/docs/hooks-rules.html). Let's recap the rules of using hooks, copied verbatim from the official React documentation:
2525

0 commit comments

Comments
 (0)