|
|
|
|
|
by Semiapies
4001 days ago
|
|
CSS in JS is not an inherently bad idea, but I haven't seen a good implementation, much less one as good as a CSS preprocessor. CSS done in React abandons all that's powerful about CSS in order to do glorified inline styles. Look at the example. Imagine that being one of dozens or hundreds of components in an app. Then imagine trying to re-style the app from a flat-looking interface to whatever's trendy next. I'd much rather do that with a LESS file than muck through however many JS files that would take with this. |
|
They can just take a <Tab><Item/><Item/><Item/></Tab> and expect those components to be designed inside of the components themselves.
This is var more similar to how iOS handles design. You have your own custom views with their own style defined, obviously on some you can override them, but usually they are defined inside the class itself.
It makes sense for Web to take this route, given how hard it is to design on the web compared to iOS. At least for me :)