I am doing a react js project which include dual language when click on button eng/chi, My whole Pages need to change to english include header and footer. So i had create 2 .js every file which is chi and eng.
How do i jump to the EngMainPage when i click on the button?
In my App.js i using this ways to make it the 1st page when i start the program
import ChineseHomePage from './components/pages/Chinese/ChineseHomePage'
<Switch>
<Route path='/' exact component={ChineseHomePage } />
</Switch>
In my ChineseHomePage i use <Navbar /> to call for the section (under ./components/pages/Chinese/ChineseHomePage)
In my Navbar i have one part which try to use
<li className='nav-item'>
<Link to = {"/WHATSHOULDIPUTHERE"} className='nav-links' onClick={closeMobileMenu}>
中文 / Eng
</Link>
</li>
The objective is when i click on the link, i want to redirect the website to a file at /components/pages/Eng/EngHomePage.js
which part should i add the Route path and what should put in WHATSHOULDIPUTHERE