1. What is JSX?
JSX is a syntax extension for JavaScript that looks similar to HTML. It allows us to describe UI directly inside JavaScript in a readable way.
const element = <h1>Hello, React!</h1>;10 questions and relatively short but comprehensive answers for entry level devs.

Preparing for your first React developer role? Here are 10 essential interview questions with concise explanations to help you ace your interview.
React is a JavaScript library for building user interfaces. It was developed by Facebook and is maintained by Meta and a community of developers.
JSX is a syntax extension for JavaScript that looks similar to HTML. It allows us to describe UI directly inside JavaScript in a readable way.
const element = <h1>Hello, React!</h1>;Props are read-only inputs passed from a parent component to a child component. They let components stay reusable and configurable.
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}State is built-in React data that belongs to a component. When state changes, React re-renders the component with the updated value.
const [count, setCount] = useState(0);A component is a reusable building block of a React app. Components can return JSX and manage logic, state, and props.
function Button() {
return <button>Click me</button>;
}The virtual DOM is a lightweight in-memory representation of the real DOM. React compares updates there first and changes only what is necessary in the browser.
// React updates the virtual DOM first
setItems((current) => [...current, newItem]);useState is a React Hook that lets function components store and update local state.
const [isOpen, setIsOpen] = useState(false);
setIsOpen(true);useEffect is a Hook used for side effects like fetching data, subscribing to events, or syncing values after render.
useEffect(() => {
document.title = `Count: ${count}`;
}, [count]);A key helps React identify which list items changed, were added, or were removed. Stable keys improve rendering correctness and performance.
items.map((item) => <li key={item.id}>{item.name}</li>);Conditional rendering means showing different UI based on state or props using normal JavaScript conditions.
{isLoggedIn ? <Dashboard /> : <SignInPrompt />}React Router is a routing library for React applications. It helps map URLs to components for navigation in single-page apps.
<Route path="/about" element={<AboutPage />} />For interview prep, focus on explaining concepts in your own words instead of memorizing one-line definitions. Small working examples often help you stand out more than long theory answers.
A strong beginner React interview usually comes down to clarity. If you understand the basics well and can explain them simply, you are already in a strong position.
Check out more articles on React, JavaScript, TypeScript, and frontend engineering.