Here is an example of how the routes can be edited to work with the links in the navbar:
import { Router, Link } from 'preact-router/match';
import Header from './header';
import Home from '../routes/home';
import Pricing from '../routes/pricing';
import License from '../routes/license';
const App = () => (
<div>
<Header />
<div className="p-5">
<Router>
<Link to="/">
<a href="/">Home</a>
</Link>
<Link to="/pricing">Pricing</Link>
<Link to="/license">License</Link>
</Router>
</div>
</div>
);
In this example, the Link component from preact-router/match is used to create links that match the paths defined in the Router component. The Link component takes an optional to prop that specifies the path to navigate to, and an optional children prop that contains the link text.
Note that the Link component requires the preact-router package to be installed.