You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5027,3 +5027,7 @@
5027
5027
10. PayPal
5028
5028
301. ### Is it recommended to use CSS In JS technique in React?
5029
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.
5030
+
302. ### Do I need to rewrite all my classcomponentswith hooks?
5031
+
No. But you can try Hooks in a few components(or newcomponents) without rewriting any existing code. Because there are no plans to remove classes in ReactJS.
0 commit comments