In react. Routing settings, how to make a page component display by default?

in vue, vue-router I redirect with redireact, and the route jumps to that specified route, and the page component is displayed. When I use react, it doesn"t seem to show by default when it is set up in the route. Why is that?

clipboard.png

clipboard.png

clipboard.png

as shown in the figure, clicking footer, does not display the contents of the one under footer.
I hope the great gods will solve their doubts!

Apr.05,2021

there is also a component called Redirect in react-router .

as a reminder, it's best not to learn the analogy between react and vue .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9bd78-188e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9bd78-188e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?