React code is written in JSX, but no browser can execute JSX directly as they are built to read-only regular JavaScript. Virtual DOM is a concept where a virtual representation of the real DOM is kept inside the memory. Key helps React identify which items have changed, are added, or are removed, enabling it to reuse already existing DOM elements.

5m read timeFrom dev.to
Post cover image
Table of contents
1. What is the React Virtual DOM ?2. Why do we need to transpile React code?3. What is the significance of keys in React ?4. What is the significance of refs in React ?5. What are the most common approaches for styling a React application?6. What are some of the performance optimization strategies for React ?7. What is prop drilling and how to avoid it?8. What is the StrictMode component and why would you use it?9. What are synthetic events in React ?10. Why is it not advisable to update state directly, but use the setState call?11. What are portals in React ?
5 Comments

Sort: