Whenever user opens “localhost:3000”, I have to redirect the user to “localhost:3000/home/dashboard”

Whenever user opens localhost:3000 I have to redirect the user to localhost:3000/home/dashboard. How can I make the router to do that in a React application? I tried but I am not getting the result I want.