What is React?
React is a JavaScript library for building user interfaces by describing them as a function of state. It updates the UI efficiently when state changes, using a virtual DOM for performance.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Top React Interview Questions Every Fresher Should Know
JSX is a syntax extension for JavaScript that compiles to React.createElement calls. It looks like HTML but is JavaScript, with differences like using className instead of class.
Props are inputs from a parent, read-only in the child. State is internal data the component owns and can change, triggering re-renders. Props are external; state is internal.
A reusable, independent piece of UI, usually a function that returns JSX. Components compose to build full user interfaces, accepting props and managing state.
Still have questions?
Browse all our FAQs or reach out to our support team
