mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
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:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user