Explain the useEffect hook
The useEffect hook in React is used for side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM.
The useEffect hook in React is used for side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM.
React Router is a library that enables navigation among views in a React application, allowing for the development of single-page applications.
setState is used to update the state of a component and trigger a re-render.
Lifting state up is a pattern where the state of a child component is moved to its parent component, allowing multiple child components to share the same state.
State is internal to a component and can be changed over time, while props are external and passed to a component.
State is an internal data store that belongs to a specific component, and it can be changed over time. Props are properties passed to a component from its parent, and they are immutable.
Keys are used to uniquely identify and differentiate between components in React. They help React identify which items have changed, added, or removed.
The virtual DOM is a lightweight copy of the actual DOM in memory. React uses it to improve performance by updating only the changed parts of the actual DOM.
JSX (JavaScript XML) is a syntax extension for JavaScript recommended by React for describing what the UI should look like.
React is an open-source JavaScript library for building user interfaces or UI components, developed by Facebook.