UNPKG

create-mettle-app

Version:

A set of fast building mettle.js project command line tool.

21 lines (17 loc) 348 B
import { linkTo, toParse } from 'mettle-router'; export default function About() { function goHome() { linkTo({ path: '/', }); } function getOption() { console.log(toParse()); } return ( <> <button onClick={goHome}>goHome</button> <h1 onClick={getOption}>About</h1> </> ); }