React redirect to another page in function


React redirect to another page in function