Skip to content

Commit 3f70eda

Browse files
committed
Add hooks interview questions and answers
1 parent 5530666 commit 3f70eda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5027,3 +5027,7 @@
50275027
10. PayPal
50285028
301. ### Is it recommended to use CSS In JS technique in React?
50295029
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 class components with hooks?
5031+
No. But you can try Hooks in a few components(or new components) without rewriting any existing code. Because there are no plans to remove classes in ReactJS.
5032+
303. ### How to fetch data with React Hooks?
5033+

0 commit comments

Comments
 (0)