There are times where you have got a navbar
or a sidebar
with a bunch of link items and custom styling for when the
route
is active.
Having an array
of links makes it DRY
. You don't have to needlessly repeat yourself especially when it comes to styling.
The above use case is one good example.