Waku Router implementation with Navigation API
npm install waku-navigationExperimental Waku Router implementation with Navigation API
``bash`
npm install waku-navigation
Create this file as ./src/waku.client.tsx:
`tsx
import { StrictMode } from 'react';
import { createRoot, hydrateRoot } from 'react-dom/client';
import { Router } from 'waku-navigation';
const rootElement = (
);
if ((globalThis as any).__WAKU_HYDRATE__) {
hydrateRoot(document, rootElement);
} else {
createRoot(document as any).render(rootElement);
}
``