Skip to content

Instantly share code, notes, and snippets.

@jason-enstedt
Created March 11, 2020 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jason-enstedt/8c6543f1a22607b08a92bbefce433c89 to your computer and use it in GitHub Desktop.
Save jason-enstedt/8c6543f1a22607b08a92bbefce433c89 to your computer and use it in GitHub Desktop.
import React from 'react';
import {BrowserRouter as Router, Route} from 'react-router-dom';
import './App.css';
import Header from './components/Header';
import Footer from './components/Footer';
import Home from './components/Home';
import Nav from './components/Nav';
import Single from './components/Single';
import ScrollToTop from 'react-router-scroll-top';
import ReactVivus from 'react-vivus';
import top from './images/topography-jde-white.svg';
function App() {
return (
<Router>
<ScrollToTop>
<ReactVivus
id="foo"
option={{
file: top,
animTimingFunction: 'EASE',
type: 'sync',
onReady: console.log,
start: "autostart",
}}
callback={console.log}
/>
<div className="wrapper">
<Header />
<Nav />
<Route path="/" exact><Home /></Route>
<Route path="/project"><Single /></Route>
<Footer />
</div>
</ScrollToTop>
</Router>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment