Re:Layout-Isolated Components
by emilsjolander on Wednesday April 01, 2020 @04:37PM
(#22753267)
OP here. Totally agree passing arbitrary styles down in props is not a great solution and makes to incredibly hard to reason about components. We defined explicitly using typescript the styles which can be set from the parent which makes it much easier to reason about and we can even use the "find all references" feature of VSCode to identify usages.
[ Parent
| on HN ]
There are no comments on this comment yet.