UNPKG

@travi/hapi-react-router

Version:

hapi route to delegate routing for html content to react-router

27 lines (23 loc) 535 B
import React from 'react'; import {node} from 'prop-types'; import AppBar from 'material-ui/AppBar'; import {Link} from 'react-router'; export default function Wrap({children}) { return ( <div id="wrap"> <AppBar title="Example" /> <nav> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/foo">Foo</Link></li> <li><Link to="/bar">Bar</Link></li> </ul> </nav> {children} </div> ); } Wrap.displayName = 'Wrap'; Wrap.propTypes = { children: node };