Skip to content

Commit 161500d

Browse files
committed
update README
1 parent b7cd1a1 commit 161500d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ CSS builder for creating inline react component style objects
44

55
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.
66

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
813

914
[View the installation and API docs](http://jhudson8.github.io/fancydocs/index.html#project/jhudson8/react-css-builder)
1015

0 commit comments

Comments
 (0)