So far I have been pushing to history obtained from useHistory to navigate to different routes from React components. However I would like to achieve this from a no
useHistory