Skip to content

Commit bcdc05e

Browse files
authored
Update README.md
1 parent e4b1c60 commit bcdc05e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@
10691069
10701070
45. ### Why React uses `className` over `class` attribute?
10711071
1072-
`class` is a keyword in JavaSript, and JSX is an extension of JavaScript. That's the principal reason why React uses `className` instead of `class`. Pass a string as the `className` prop.
1072+
`class` is a keyword in JavaScript, and JSX is an extension of JavaScript. That's the principal reason why React uses `className` instead of `class`. Pass a string as the `className` prop.
10731073
10741074
```jsx harmony
10751075
render() {
@@ -5026,4 +5026,4 @@
50265026
9. Netflix
50275027
10. PayPal
50285028
301. ### Is it recommended to use CSS In JS technique in React?
5029-
React does not have any opinion about how styles are defined but if you are a beginner then good starting point is to define your styles in a separate *.css file as usual and refer to them using className. This functionality is not part of React but came from third-party libraries. But If you want to try a different approach(CSS-In-JS) then styled-components library is a good option.
5029+
React does not have any opinion about how styles are defined but if you are a beginner then good starting point is to define your styles in a separate *.css file as usual and refer to them using className. This functionality is not part of React but came from third-party libraries. But If you want to try a different approach(CSS-In-JS) then styled-components library is a good option.

0 commit comments

Comments
 (0)