Applications almost always have more than one reducer, based on what data is in the application. We'll add a new reducer and combine it with the todos reducer in the root Redux store.
Then, we'll make a new connected component, and use it directly in JSX. That will show how you can "gate" access to different parts of your application based on the Redux store.
Summary of Content:
- Create a new
- Add a username to the store
- Create a
LoginGatewhich will show the login screen if the username in redux is blank