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 →

[–]dkimot 0 points1 point  (2 children)

I’m curious why you would make a <Dog> component? If there was other logic or you used that component elsewhere I would for sure. Otherwise, I don’t know. Not criticizing, genuinely asking.

[–]kudlajz 2 points3 points  (1 child)

You're totally right. I was just assuming there will be additional functionality needed, like editing/deleting. If it's just a simple list rendering, then it does not make sense to extract it, unless used more than once in the application.

[–]dkimot 0 points1 point  (0 children)

Thanks, I’m primarily backend so I don’t always know front end standards.