Skip to content

Commit 8c1df0d

Browse files
authored
Merge pull request #4266 from dafydddev/patch-3
Fix typo in part7a.md regarding access to functions
2 parents ea937c0 + 6c49cd8 commit 8c1df0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/7/en/part7a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In addition, this part contains a larger exercise series that extends the BlogLi
1515

1616
React offers 18 different [built-in hooks](https://react.dev/reference/react/hooks), of which the most popular ones are the [useState](https://react.dev/reference/react/useState) and [useEffect](https://react.dev/reference/react/useEffect) hooks that we have already been using extensively.
1717

18-
In [part 5](/en/part5/props_children_and_proptypes#references-to-components-with-ref) we used the [useRef](https://react.dev/reference/react/useRef) and [useImperativeHandle](https://react.dev/reference/react/useImperativeHandle) which allowed a component to provide access th their functions to other components. In [part 6](/en/part6/react_query_use_reducer_and_the_context) we used [useContext](https://react.dev/reference/react/useContext) to implement a global state.
18+
In [part 5](/en/part5/props_children_and_proptypes#references-to-components-with-ref) we used the [useRef](https://react.dev/reference/react/useRef) and [useImperativeHandle](https://react.dev/reference/react/useImperativeHandle) which allowed a component to provide access to their functions to other components. In [part 6](/en/part6/react_query_use_reducer_and_the_context) we used [useContext](https://react.dev/reference/react/useContext) to implement a global state.
1919

2020
Within the last couple of years, hooks have become the standard way for libraries to expose their APIs. Throughout this course we have already seen several examples of this: [Zustand](https://zustand-demo.pmnd.rs/) provides <i>useStore</i> for accessing global state, [React Router](https://reactrouter.com/) exposes <i>useNavigate</i> and <i>useParams</i> for programmatic navigation and URL parameter access, and [React Query](https://tanstack.com/query/latest) offers <i>useQuery</i> and <i>useMutation</i> for server state management.
2121

0 commit comments

Comments
 (0)