Re:Why is routing so complex?
by maxdeviant on Saturday December 10, 2016 @02:01PM
(#13147246)
React Router v4 places a greater emphasis on splitting up your routes, as opposed to keeping them all in one spot [1].
It also allows you to do really cool stuff like in their recursive routing example [2].
And I don't believe we're saving ourselves any real complexity by creating standardized API for prefixes and such. The cost of having to type /posts/new and /posts/favorite seems like a small price to pay for a dramatic improvement in clarity and decrease in router complexity.
Some programmers take DRY way too far.