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