Learning Partner

Other Companies (Name Not Shared) React.js Interview Questions for Not specified

Shared question set for Not specified of experience, JavaScript, React, HTML/CSS and machine coding. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. What is event bubbling, and when would you use event delegation?
  2. What is the difference between preventDefault() and stopPropagation()?
  3. Why does typeof null return "object"?
  4. How would you copy an object with nested objects without sharing references?
  5. Implement a once() function that allows another function to run only once.
  6. Why might a state value still appear unchanged immediately after calling its setter?
  7. What happens to a component's state when its key changes?
  8. When should an effect return a cleanup function?
  9. How would you avoid using an outdated API response after a component's inputs change?
  10. How do you decide whether a value belongs in state or can be calculated during render?
  11. Why might position: sticky appear not to work?
  12. What changes when you set box-sizing: border-box?
  13. Why should an action use a button instead of a clickable div?
  14. How would you prevent an image from shifting the page layout while it loads?
  15. Build a multi-step form that preserves entered data and validates each step.
  16. Build an image gallery with keyboard navigation, a loading state and an accessible close button.

Browse React.js question sets