UNPKG

react-static

Version:

A progressive static site generator for React

28 lines (24 loc) 629 B
import React from 'react' import { Router, Link } from 'react-static' import { hot } from 'react-hot-loader' // import Routes from 'react-static-routes' import Navigation from './components/Navigation' import withAuthentication from './session/withAuthentication' import './app.css' const App = withAuthentication(() => ( <Router> <div> <nav> <Link exact to="/">Home</Link> <Link to="/about">About</Link> <Link to="/blog">Blog</Link> </nav> <Navigation /> <div className="content"> <Routes /> </div> </div> </Router> )) export default hot(module)(App)