Skip to content

pasha-log/react-effects-and-refs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Effects And Refs Exercise: Card Drawer

Description:

Check it out

You can either draw a card with a click of a button until you reach the end of the deck, or click another button to draw a card contiuously every second until you toggle it to stop. This application was made with the Deck of Cards API and made possible with React's useState, useEffect, and useRef.

Tools used:

  • React.js
  • Axios

Setup & Running

Created with Create React App.

  1. Clone this repository

  2. Use the NPM scripts

    • Install the dependencies

      npm i 
    • Running in development mode

      npm run start
    • Create production build

      npm run build