Conversation
|
I have closed this as well. |
|
I reimplemented it. I’m no longer using the ZikoJS file-based router itself, only a few shared utilities for route matching and dynamic params (masks, checks, parsers, etc.). With this approach, The new Demo : https://stackblitz.com/edit/zakarialaoui10-ufbr-uggmzzzd?file=src%2Fpages%2Fasync%2Ftodos%2F[id].jsx If you consider this resolved, feel free to reopen the PR : preactjs/preact-www#1372 |
|
You'll probably want to take a look at that flash of content. |
|
@rschristian noticed an issue in the initial implementation, so I temporarily closed the pull request. The problem is now fixed, and the PR has been reopened. |
Overview
ufbr is an Universal File Based Router with
PreactsupportsFeatures
Demo
Usage
This setup supports the following routes:
Best practices
Use ufbr with Preact when you need a client-side, file-based router and SEO is not a priority (for example, dashboards or internal tools).
For SSR and SEO-focused, file-based routing, consider using Next.js, Astro, or similar frameworks.
Checklist
[Title Case Name](link) - Description..