Search⌘ K

Exercise Solution

Explore how to refactor a React User Card application by accessing state directly from the Redux store and implementing a simple reducer. Understand foundational Redux concepts through practical application as you prepare to build more complex state management.

We'll cover the following...

We were trying to refactor our User Card app using Redux. Below, I’ve written a simple solution:

const reducer = state => {
  return state;
};

export default reducer;
...