It's a JavaScript library for building user interfaces. It allows developers to create reusable UI components that update efficiently and automatically when data changes. React follows a declarative approach, making it easier to manage the state of an application and render dynamic content.
Open source
Declarative
V of mvc
It uses Virtual DOM
It is Component based dev, smallest logical unit
JSX is used
One way data binding
You need to add a button that toggles a piece of text in a functional component. Walk me through how you would implement that and what happens under the hood when the button is clicked.
If you render a list of items using map and forget to provide a key, what visual or performance issues might you see?
When you call setState in a class component, when does the UI actually update?
We have a component that fetches data in useEffect and updates state, but sometimes the UI shows stale data after rapid navigation. How would you debug this and what part of React's rendering model could be causing it?
During a refactor we switched from class components to hooks, and a component started re‑rendering twice on each state change. Explain why this might happen and how you would fix it.
Our app uses React.memo to optimise a heavy child component, but we notice no performance gain. What could be wrong with our memoisation strategy?
We need to improve the time‑to‑interactive of a large dashboard that renders thousands of rows. How would you redesign the rendering strategy using React's features to minimise work?
Explain how React's Fiber architecture enables interruption of rendering, and how you would leverage it when implementing a progressive loading UI.
Our team is introducing server‑side rendering with hydration. What pitfalls should we watch for regarding mismatched markup and how does React reconcile them?
We are planning a gradual migration from a legacy Backbone app to a React micro‑frontend architecture. What high‑level strategy would you propose to ensure a smooth transition while keeping performance and team velocity?
At scale, how would you structure shared component libraries and enforce consistent rendering behavior across multiple product teams using React?
Discuss the trade‑offs of adopting Concurrent React (React 18) across all services in a large organization, considering backward compatibility, testing, and operational monitoring.