React's in-memory description of the UI. React compares the new description to the previous one and updates the real DOM only where they differ, a process called reconciliation, which makes updates efficient.
Top React Interview Questions Every Fresher Should Know
What is the virtual DOM?
The answer
More FAQs in Top React Interview Questions Every Fresher Should Know
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.
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.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.