News for hackers. Stuff that matters.
Re:Show HN: React Routing in 120 lines (including comments) by martini333 on Friday May 13, 2022 @06:38AM (#31365616)
Why not describe it as 1KB minified? That's way more impressive.
Re:Show HN: React Routing in 120 lines (including comments) by franciscop on Friday May 13, 2022 @08:29AM (#31366668)
1kb is likely a lot more than what is shown here; I made a "tiny" but very complete React Router package which is very complete and minified+gzip it's just 1.8kb https://crossroad.page/
Re:Show HN: React Routing in 120 lines (including comments) by KhalPanda on Friday May 13, 2022 @08:30AM (#31366689)
Or "React Routing in 70 lines, with 50 lines of documentation".
Re:Show HN: React Routing in 120 lines (including comments) by ratww on Friday May 13, 2022 @07:56AM (#31366363)
The author's goal in this seems to be education, not really optimization or replacement of a bigger framework. And I guess this would probably be much less than 1k!