make css-in-js language more neutral

CSS-in-JS is not endorsed but it's also not discouraged; trying to find middle ground.
This commit is contained in:
Alex
2017-11-27 02:39:45 -08:00
committed by GitHub
parent 501293a425
commit bd422de439

View File

@@ -42,7 +42,7 @@ CSS classes are generally more efficient than inline styles.
"CSS-in-JS" refers to a pattern where CSS is composed using JavaScript instead of defined in external files. Read a comparison of CSS-in-JS libraries [here](https://github.com/MicheleBertoli/css-in-js).
_Note that this functionality is not a part of React, but provided by third-party libraries._ React does not have an opinion about how styles are defined; if in doubt, define your styles in a separate `*.css` file as usual and refer to them using [`className`](/docs/dom-elements.html#classname).
_Note that this functionality is not a part of React, but provided by third-party libraries._ React does not have an opinion about how styles are defined; if in doubt, a good starting point is to define your styles in a separate `*.css` file as usual and refer to them using [`className`](/docs/dom-elements.html#classname).
### Can I do animations in React?