Skip to content

Commit eaa7308

Browse files
authored
Updated
Removed the import statement, expanded the previous commit
1 parent 027ec4b commit eaa7308

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

content/docs/faq-styling.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ category: FAQ
88

99
### How do I add CSS classes to components?
1010

11-
Import the CSS file in which the styles are scoped:
12-
13-
```jsx
14-
import from './path/to/Filename.css';
15-
```
16-
1711
Pass a string as the `className` prop:
1812

1913
```jsx
@@ -46,7 +40,9 @@ CSS classes are generally more efficient than inline styles.
4640

4741
### What is CSS-in-JS?
4842

49-
CSS-in-JS refers to a pattern where CSS is written with Javascript, then extracted into a stylesheet.It is `not mandatory` to use CSS-in-JS.
43+
CSS-in-JS refers to a pattern where CSS is written with Javascript, then extracted into a stylesheet.
44+
45+
It is _not recommended_ to use CSS-in-JS instead you may define your styles in a separate `*.css` file or inline (using the `style` attribute). If you still prefer using CSS-in-JS go checkout various libraries below:
5046

5147
[Comparison of CSS-in-JS Libraries](https://github.com/MicheleBertoli/css-in-js)
5248

0 commit comments

Comments
 (0)