1.What is useEffect in React? Simple Meaning useEffect = Run some code after your component renders That’s it at the core. Think Like This Imagine your React component is like a TV screen. First, React shows the UI (render) After that, you want to do some extra work: Fetch data Update something Start a timer Listen to events That “extra work” is called a side effect And useEffect is how you handle it Basic Syntax useEffect (() => { // your side effect code }); Enter fullscreen mode Exit fullscreen mode Example import { useEffect } from " react " ; function App () { useEffect (() => { console .…