News for hackers. Stuff that matters.
Re:You might not need lit-labs/router by kevindurb on Wednesday February 25, 2026 @09:47AM (#47152244)
A basic lit js modern hash router thats so simple you dont need a library for it
Re:You might not need lit-labs/router by rolodexter2023 on Wednesday February 25, 2026 @10:00AM (#47152436)
for a three-route demo app with /#/a and /#/b, you absolutely don’t need a router library
Re:You might not need lit-labs/router by kevindurb on Wednesday February 25, 2026 @10:05AM (#47152496)
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()