1.
In Redux, how is the state accessed by components?
By dispatching actions to update the state.
By using a global variable to store the state and accessing it directly from components
By using selectors to retrieve specific data from the state.
By directly accessing the state object.
Correct: C
In Redux, components do not directly access the state object. Instead, they use selectors to retrieve specific data from the state. Selectors provide a way to retrieve only the data that is relevant to a particular component, improving performance by avoiding unnecessary re-renders.
1 / 30