Skip to content

alkemyTech/OT161-React-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ong Client

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Available Scripts

In the project directory, you can run:

yarn start

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.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

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.

Skeleton

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

Shared components

Spinner

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;