import React from 'react';
import ReactDOM from 'react-dom';
import {Main, NoRoute} from "./app";
import {Search} from './components/Search';
import {Router} from "@reach/router";

import './styles/reset.css';
import './styles/main.css';

const App = () => (
    <Router>
        <Main path='/'/>
        <Search path='/search'/>
        <NoRoute default/>
    </Router>
);

ReactDOM.render(
    <App/>,
    document.getElementById('root')
);
