This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
Your app is ready to be deployed!
See the section about deployment for more information.
The MUI dependency is used to generate a skeleton component
that is rendered while the content is loading
In this projecte the Skeleton component works with three properties and its call is
<UseSkeleton
type = 'text' //By default is null and its a rectangle
width = {50} //By default is 50px
height = {20} //By default is 20px
/>
Documentation of Skeleton component: https://mui.com/components/skeleton/
To install MUI dependency use:
// with npm
npm install @mui/material @emotion/react @emotion/styled
// with yarn
yarn add @mui/material @emotion/react @emotion/styled
El spinner es un componente SVG que puede ser reutilizado en cualquier parte del código.
La dependencia react-loader-spinner fue instalada para facilitar la utilización del mismo,
y poder acceder a diferentes diseños.
Documentación oficial: https://npm.runkit.com/react-loader-spinner
import Spinner from "../shared/Spinner";
const FormLogin = () => {
return(
{ isLoading ? <Spinner /> : <p>Logueado!!</p>}
);
};
export default FormLogin;