on button click redirect to another page in react js

in your index.js file is wrapped in a Router. To summarize, there are many ways to redirect to another page on button click in React.

on button click redirect to another page in react js