@orballo/very-tiny-router
Version:
A very tiny router (source agnostic) for Frontity
28 lines (19 loc) • 442 B
Markdown
```jsx
const Button = () => {
const { actions } = useConnect();
const handleClick = () => {
actions.router.set("/");
};
return <button onClick={handleClick}>Go Home</button>;
};
```
```js
import Link from "@orballo/very-tiny-router/link";
const Component = () => {
return <Link link="/">Go Home</Link>;
};
```