This project shows the useEffects in react.
A simple login, logout is handled using effects. The effects are dependent on the states of the login and if login screen needs to be show.
Compare this project with react-reducers project to see how it can be more easily done.