React Interview Questions
React Interview Questions
BASIC :
1. What is React?
React is a JavaScript library for building user interfaces, primarily
used for single-page applications. It allows developers to create
large web applications that can update and render efficiently in
response to data changes.
3. What is JSX?
JSX stands for JavaScript XML. It is a syntax extension for JavaScript
that allows you to write HTML directly within JavaScript. React uses
JSX to describe what the UI should look like.
ADVANCED :
41. What are render props, and how do they differ from higher-
order components?
Render props are a pattern where a component's prop is a function
that returns a React element. Unlike higher-order components
(HOCs), which wrap a component, render props allow you to reuse
component logic by passing a function to the child component.