frontend/src/screens/__tests__/RegisterScreen.test.js
// because current RegisterScreen doesn't have userLogin to render on screen
because current RegisterScreen doesn't have userLogin to render on screen
because current RegisterScreen doesn ' t have userLogin to render on screen
function DisplayState() {
  const userLogin = useSelector((state) => state.userLogin);
  const { userInfo } = userLogin;
  return (
    <div>
      <h2>Display State</h2>
      {userInfo && (
        <>
          <h1>{userInfo.name}</h1>
          <h1>{userInfo.email}</h1>
        </>
      )}
    </div>
  );
}
function DisplayState ( ) { const userLogin = useSelector ( ( state ) => state . userLogin ) ; const { userInfo } = userLogin ; return ( < div > < h2 > Display State < / h2 > { userInfo && ( < > < h1 > { userInfo . name } < / h1 > < h1 > { userInfo . email } < / h1 > < / > ) } < / div > ) ; }
because current RegisterScreen doesn't have userLogin to render on screen
because current RegisterScreen doesn ' t have userLogin to render on screen