Custom Students Hook

Learn how to display data on a page using react hooks.

We'll cover the following...

Before we build the Roster page, we will need some students to display. Later, we will want to tie the list into a data store of some sort, but we do not need to do that just to get some data displayed on the page. For that, I am going to use a custom React hook.

React hooks

As we saw in the guided tour, a react hook is a simple JavaScript function ...

svg viewer