router.js 565 B

12345678910111213141516171819
  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 Form from './components/Auth/index'
  6. import RegistrForm from './components/Auth/registration'
  7. export default () => (
  8. <div>
  9. <Header/>
  10. <Switch>
  11. <Route path="/" exact component={App} />
  12. <Route path="/auth" exact component={Form} />
  13. <Route path="/registration" exact component={RegistrForm} />
  14. </Switch>
  15. </div>
  16. );