Full Stack / JS
React
28 questions · 2 coding challenges
28 questions
Coding challenges
Questions
- 01What is virtual DOM? How does it actually work?
- 02What are all the hooks that you have used?
- 03What is the purpose of useContext?
- 04How can you write custom hooks?
- 05What is useState and useReducer?
- 06Difference between useMemo and useCallback?
- 07Why do we need hooks in ReactJS?
- 08Difference between class components and functional components?
- 09What are higher order components?
- 10Controlled and uncontrolled components?
- 11What are all the features of ReactJS?
- 12What is state in React?
- 13Difference between props and state?
- 14How can you handle errors?
- 15React performance
- 16Angular vs React
- 17useEffect
- 18Pure components
- 19Keys
- 20Why React?
- 21SPA
- 22Task: search on button click
- 23Task: counter from 0 to 20
- 24useRef vs useState — why doesn't a ref trigger a render?
- 25An older response overwrites a newer one — how do you prevent it?
- 26Unit, integration, E2E — what should you test in a form?
- 27What does count && <Badge /> render when count = 0?Multiple choice
- 28Changing ref.current and renderingMultiple choice