UNPKG

frontend-bootstrap-cli

Version:

Quickly bootstrap your frontend boilerplate library

22 lines (17 loc) 435 B
import { h } from 'preact'; import { Router } from 'preact-router'; import Header from './header'; // Code-splitting is automated for `routes` directory import Home from '../routes/home'; import Profile from '../routes/profile'; const App = () => ( <div id="app"> <Header /> <Router> <Home path="/" /> <Profile path="/profile/" user="me" /> <Profile path="/profile/:user" /> </Router> </div> ) export default App;