Separation of logic and styles is a good idea. You can name styled Item component as an ItemWrapper for better readability.
I think this is largely a leftover from the old days of web development. With react and other component based frameworks there isn't really any benefit to separating logic and styles
Could you further explain the benefits of "separation of logic and styles". Where exactly styled is better than css prop in that matter?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Separation of logic and styles is a good idea. You can name styled Item component as an ItemWrapper for better readability.
I think this is largely a leftover from the old days of web development. With react and other component based frameworks there isn't really any benefit to separating logic and styles
Could you further explain the benefits of "separation of logic and styles". Where exactly styled is better than css prop in that matter?