You might not need lit-labs/router(gist.github.com)
gist.github.com
You might not need lit-labs/router
https://gist.github.com/kevindurb/763ae5bdace325f9dc384c643f7d5d9d
3 comments
A basic lit js modern hash router thats so simple you dont need a library for it
for a three-route demo app with /#/a and /#/b, you absolutely don’t need a router library
The idea is that this router works with so much more than the three routes... should prob update the example to show that
edit: updated example to show that this can handle things like url params since it just uses URLPattern()
edit: updated example to show that this can handle things like url params since it just uses URLPattern()