Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/7/en/part7a.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In addition, this part contains a larger exercise series that extends the BlogLi

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.

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.
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.

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.

Expand Down