Skip to content

lucasbailo/react-router-dom-studies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome again to another TypeScript project! 👋

Aluroni Restaurant Page!

Test the project yourself: Teste the project here!!!

Home Page

Routes between pages

Dish filter by type

404 Page

Some code that I'm proud of

export default function AppRouter() {
  return (
    <main className='container'>
      <Router>
        <Menu />
        <Routes>
          <Route path='/' element={<PaginaPadrao />}>
            <Route index element={<Inicio />} />
            <Route path='cardapio' element={<Cardapio />} />
            <Route path='/sobre' element={<Sobre />} />
          </Route>
          <Route path='prato/:id' element={<Prato />} />
          <Route path='*' element={<NotFound />} />
        </Routes>
      </Router>
      <Footer />
    </main>
  );
}

Built with

  • TypeScript;
  • Scss;
  • React Router Dom.

Author