bypass-links icon indicating copy to clipboard operation
bypass-links copied to clipboard

Replace react-router with wouter?

Open amitsingh-007 opened this issue 2 years ago • 6 comments
trafficstars

amitsingh-007 avatar Dec 23 '22 16:12 amitsingh-007

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

amitsingh-007 avatar Jan 09 '23 14:01 amitsingh-007

Tried tanstack router, increased bundle size by 4kb gzipped. wouter has too less downloads

amitsingh-007 avatar Aug 30 '23 16:08 amitsingh-007

Try these:

amitsingh-007 avatar Jan 12 '24 20:01 amitsingh-007

Tanstack router released v1 but increased build by 7kb(total 13kb). wouter decreased total bundle by 2kb. not worth it for now

amitsingh-007 avatar Jan 13 '24 20:01 amitsingh-007

Now we can add since bundle-size is tolerable. Atleast it will give typesafe routes

amitsingh-007 avatar Feb 11 '24 18:02 amitsingh-007

we should migrate to wouter if we get size benefit of at least 1KB

amitsingh-007 avatar Apr 08 '24 14:04 amitsingh-007