Hi Scott Domes,
Luca Barone
1

Hi Luca,

Thanks for the reply! I’ll address each of your points in order:

  1. With the CSS, the goal is to have each file properly namespaced (we use SASS and thus have all styles nested within a #Component or .Component selector). Therefore there shouldn’t be any cascading issues — but I think that’s good advice in general to import the local styles first!
  2. Conditionals — I think you’re right. I’m going to revise the article to add a general note to extract that logic into a subcomponent.
  3. I went back and forth on the displayName issue… I settled on the function approach simply because I think the displayName is easy to forget to add, and would be a hard bug to resolve if it was forgotten.
Show your support

Clapping shows how much you appreciated Scott Domes’s story.