You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want React to do native well, you need to use inline styles. But, you can still get the DRY and maintainability benefits of an external stylesheet with react-css-builder.
6
6
7
-
You can create a javascript stylesheet similar to what you would see with a CSS precompiler but you can actually use variables calculated at runtime!
7
+
The advantages of creating the CSS attributes using javascript are
8
+
9
+
* You can use runtime variables
10
+
* You can use scoped (global, stylesheet specific and style reference specific)
11
+
* There is a large byte savings if you use a lot of mixins and class inheritance
12
+
* You bypass some browser CSS issues because the style attributes end up as an inline style attribute
8
13
9
14
[View the installation and API docs](http://jhudson8.github.io/fancydocs/index.html#project/jhudson8/react-css-builder)
0 commit comments