I am doing a login page, I want that when the person is correctly logged in to redirect him to a page but without reloading, and I tried to do it with the useHistory but it does