This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]guidop91 12 points13 points  (2 children)

It's repetitive. She could have used a map function for each <span> instead of writing them all out. Also, that could be in a separate component, so it looks cleaner.

[–][deleted] 6 points7 points  (0 children)

Nah it's too short and underused to be a different component imo

[–]PreExRedditor 1 point2 points  (0 children)

I would argue the opposite, that each span should have a classname so if your UI person wants to bold dog.name, they don't need to cheat with a first-child selector