Day 4: Advanced React Topics QUESTION 1: Create a component that uses useContext to share a theme (dark or light) across multiple child components. QUESTION 2: Write a component that uses useReducer to manage the state of a simple to-do list (add, delete, toggle tasks). QUESTION 3: Create a higher-order component (HOC) that wraps a given component and adds logging functionality to log when the component is rendered. QUESTION 4: Write a program to demonstrate React portals by rendering a modal outside the root DOM node. QUESTION 5: Create a custom hook useWindowSize that tracks and returns the current width and height of the window.