router.js 688 B

12345678910111213141516171819202122
  1. import React, {Fragment} from "react";
  2. import { Switch, Route } from "react-router-dom";
  3. import App from "./container/App";
  4. import Header from "./components/Header"
  5. import Auth from "./components/Auth/index"
  6. import Form from './components/Auth/authorisation'
  7. import RegistrForm from "./components/Auth/registration"
  8. export default () => (
  9. <div>
  10. <Header/>
  11. <Switch>
  12. <Route path="/" exact component={App} />
  13. <Route path="/authorisation" exact component={Form} />
  14. <Route path="/auth" exact component= {Form}/>
  15. <Route path="/registration" exact component={RegistrForm} />
  16. </Switch>
  17. </div>
  18. );