Question 3 of 10Pro Only
Compare React Context API with Redux. When would you choose one over the other? What are the limitations of Context API for large applications?
Sample answer preview
## React Context API Context provides a way to pass data through the component tree without having to pass props manually at every level. ```javascript // Create context const ThemeContext = React.createContext('light'); // Provider function App() { const [theme, setTheme] =…
Context APIReduxstate managementprop drillingmiddlewareRedux Toolkit