Redirect with React Router and Hooks
Based on a value controlled with a React Hook, redirect to a new route when the value is true
Tags: react, javascript, routing, hooks