Jaye Hackett
Feb 19, 2021

You're probably best doing that somewhere around the handleLogin function.

It would depend how your routes work, but react-router's navigation hooks should do the trick.

You could combine this with the context provider example in the Github Gist.

Jaye Hackett
Jaye Hackett

Written by Jaye Hackett

Strategic designer & technologist. Why use three short words when one long weird one will do? jayehackett.com

No responses yet