3 ms·
I've been trying out CSS modules in my new project. I've also set up a library that generates Flow type definitions, so I get static type checking and autocompl
by nathan_f77 9y ago
I've been trying out CSS modules in my new project. I've also set up a library that generates Flow type definitions, so I get static type checking and autocomplete for my CSS classes [1]. It's pretty awesome, and works with SASS too. I love having every React component self-contained. It makes refactoring and reusing code so much easier.
[1] https://hackernoon.com/type-safe-css-modules-with-flow-dd95e761bbe5 https://hackernoon.com/type-safe-css-modules-with-flow-dd95e...