bypass-links
bypass-links copied to clipboard
Replace react-router with wouter?
Should be either wouter or @tanstack/react-router. I think it should be the latter based on GH Stars. Also the latter give type safety
Tried tanstack router, increased bundle size by 4kb gzipped. wouter has too less downloads
Try these:
- https://github.com/molefrog/wouter Size is greatly reduced. Just include it and check the total size increase.
- https://tanstack.com/router/v1 v1 released. Include it and check if total size increase.
Tanstack router released v1 but increased build by 7kb(total 13kb). wouter decreased total bundle by 2kb. not worth it for now
Now we can add since bundle-size is tolerable. Atleast it will give typesafe routes
we should migrate to wouter if we get size benefit of at least 1KB