In this episode of the Custom React Hooks series, we'll create a hook to simplify the observation of our users network state. Our goal is to define a useNetworkState hook that will abstract this logic inside a custom hook, that is reusable over the entire app. This will also reduce the code inside our App component.
2 Comments
Sort: