Back to Interview Hub

React.js Questions

React hooks, state management, components, and performance optimization.

Showing 1-6 of 150 questions

1 / 25
1QuestionsEasy🔥 59% Asked

What is React?

Asked in:MicrosoftWipro

React is a JavaScript library for building component-based user interfaces. It helps create fast, reusable UI for web apps.

2QuestionsEasy🔥 51% Asked

What is JSX?

Asked in:TwitterNetflixFlipkartMeta

JSX is JavaScript XML-like syntax used to write UI inside JavaScript. Babel converts JSX into React.createElement calls.

3QuestionsEasy🔥 30% Asked

What are components in React?

Asked in:OracleLinkedIn

Components are reusable UI blocks. They can be functional or class-based, but modern React mainly uses functional components.

4QuestionsEasy🔥 58% Asked

What are props?

Asked in:ZomatoMicrosoftAirbnbTCS

Props are read-only values passed from a parent component to a child component. They help make components reusable.

5QuestionsEasy🔥 40% Asked

What is state?

Asked in:MicrosoftAmazon

State is internal data managed by a component. When state changes, React re-renders the component.

6QuestionsEasy🔥 39% Asked

Difference between props and state?

Asked in:CredTCS

Props come from the parent and are read-only. State belongs to the component and can change using setters like setState or useState.