Skip to content
Snippets Groups Projects
Routes.tsx 477 B
Newer Older
  • Learn to ignore specific revisions
  • import React from 'react';
    import { Route, Switch } from 'react-router';
    
    import ProfileButton from './components/ProfileButton';
    import NewsPage from './pages/NewsPage';
    
    Rafael László's avatar
    Rafael László committed
    import RulesPage from './pages/RulesPage';
    
    const Routes: React.FC = () => (
    
      <Switch>
        <Route path="/" exact>
    
          <ProfileButton />
    
        </Route>
    
        <Route path="/news">
          <NewsPage />
        </Route>
    
    Rafael László's avatar
    Rafael László committed
        <Route path="/rules">
          <RulesPage />
        </Route>
    
      </Switch>
    );
    
    
    export default Routes;