5 ms·
And now when you want to make a simple style change you need to update every single link
by brigadier132 2y ago
And now when you want to make a simple style change you need to update every single link
- cporios 2y agoExactly, which is the entire reason the array pattern exists, and yet the article forgets to mention that entirely.
- baq 2y agoStill sounds like a component?
- recursive 2y agoYou're arguing for more abstraction. The article is arguing for less. You're going in the opposite direction.
- baq 2y agoNo, not really. I'm arguing for putting a list of static html tags in a component instead of generating html from a static data structure. If that component is not going to be reused anywhere or tested in isolation, absolutely inline it.
- dimgl 2y agoWhat? That's not true. You can use a custom `Link` component...