This is an app where you can login with different users and it shows the last time the user accessed.
The login is simulated with Promises and setTimeout
.
Registered users are mocked in data/registeredUsers.json
The user logged and the time when was logged persists in LocalStorage.
This is a React project, implementing hooks.
The errors validations are made by react-hooks-form
library.
Tests are made with Jest
and Enzyme
.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
You can login with some of the credentials in registeredUsers.json
but here is one you can use:
email: jax@jax.com
password: hola123456
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\