Thanks for the reply! I’ll address each of your points in order:
- 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!
- 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.
- 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.