-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At 18:05, I am not getting the same output #13
Comments
didi you install https://v5.reactrouter.com/web/guides/quick-start |
I am having the same issue and that did not work. |
@srp8 If you're having the exact same issue with exact same code as the questioner, then by replacing those codes I've mentioned, it has to solve your issue. Otherwise, your problem is related to other sections of your application and you need to check the console for further information. |
React Router IntegrationCode Exampleimport { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import Navbar from './Components/Navbar';
import { Home, About, Projects, Contact } from './pages';
const App = () => {
return (
<main className='bg-slate-300/20'>
<Router>
<Navbar/>
<Routes>
<Route path='/' element={<Home/>} />
<Route path='/about' element={<About/>} />
<Route path='/projects' element={<Projects/>} />
<Route path='/contact' element={<Contact/>} />
</Routes>
</Router>
</main>
);
};
export default App; |
@adarsaparasar |
After adding the routes, Its not showing the string on the localhost. Help will be appreciated!
The text was updated successfully, but these errors were encountered: