Conditional Navigation in React
The ability to programmatically redirect to a new page in a React app is a common task. With the plethora of client side routing libraries, it's also a super easy task.
In today's world of React hooks, this is usually all it takes:
const history = u...
dev.krisguzman.com7 min read