Skip to content

francescofavatella/react-interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Interview

In this project you will find an implementation of the react coding interview exercise you can find in the Beginner React.js Coding Interview (ft. Clément Mihailescu) video.

IMAGE ALT TEXT HERE

What to implement

  1. Add a button that increase a counter and prints the number
  2. Add a button that interacts with an external api (https://randomuser.me/api) and prints the json object
  3. Print the user as title firstName lastname
  4. Use the paginator api (https://randomuser.me/api/?page=1&seed=abc) to add a new user when pressing the button

What to learn

  • useState
  • useEffect
    • run on startup
    • async
    • call useState inside useEffect
  • typescript
    • interface
    • array
  • props
  • fragment
  • useEffect
    • run on custom event

How to install

npx create-react-app react-interview --template typescript
npm install axios 

How to run the application

npm start 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published