Day 3: Lifecycle Methods and Hooks QUESTION 1: Create a class component that logs messages to the console when the component mounts, updates, and unmounts. Use componentDidMount, componentDidUpdate, and componentWillUnmount. QUESTION 2: Write a functional component that uses the useEffect hook to: Log a message when the component renders for the first time. Clean up by logging a message when the component unmounts. QUESTION 3: Create a timer component using useState and useEffect that starts at 0 and increments by 1 every second. QUESTION 4: Write a component to fetch data from a public API (e.g., JSONPlaceholder) using the useEffect hook and display it in a list. QUESTION 5: Build a component that updates its background color randomly every 2 seconds using the useEffect hook.