DEV Community

Discussion on: Redirect with React Router and Hooks

Collapse
 
renansdf profile image
Renan Souza de Freitas

Wow thanks! That was exactly what i needed, but looks hackish though. To me React just doesen't make sense when you can't useHistory (a function) inside useCallback (another function). Is it just me? I'm new to this so i guess i'll figure out why in a while lol.