You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
516 B
19 lines
516 B
import React from 'react';
|
|
import {Switch, Route } from "react-router-dom";
|
|
|
|
import Home from "./components/views/Home.js";
|
|
import CreateBallot from "./components/views/CreateBallot.js";
|
|
import UnknownView from "./components/views/UnknownView";
|
|
|
|
function Routes() {
|
|
return (
|
|
<Switch>
|
|
<Route exact path="/" component={Home} />
|
|
<Route path="/create-ballot" component={CreateBallot} />
|
|
<Route component={UnknownView} />
|
|
</Switch>
|
|
);
|
|
}
|
|
|
|
export default Routes;
|