diff --git a/README.md b/README.md index 268290e..f578af0 100644 --- a/README.md +++ b/README.md @@ -158,9 +158,7 @@ export const $router = createRouter({ … }, { links: false }) function onClick (e) { e.preventDefault() - let path = new Url(event.target.href).pathname - let params = $router.get()?.search - openPage($router, '…', { }, { ...params }) + $router.open(new Url(e.target.href).pathname) } export const Link = (props) => {