# npm

How to sync component state with React Router

Custom hooks with the useState interface to use the React Router state as the component state.

Link