I'm using useState
and useContext
. 😄
I'm using Reqres to create service request test
- Base URL:
https://reqres.in/
- Endpoint:
/api/login
- Method request:
POST
- To request API, I'm using
axios
- To save token data and info user, I'm using
store
- To style page, I'm using
styled-components
Clone the repository and install all packages; I'm use command yarn
or yarn
.
Open your terminal and execute:
# Clone repository
git clone git@github.com:lenivene/react-auth-hooks-example.git
# After cloning, execute:
cd "./react-auth-hooks-example"
# Install all packages
yarn install #or
npm install