Skip to content

HackYourFuture/class27-react-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Test

The test is to rebuild the following application:

http://hyf-react-test.herokuapp.com/

How to start

  1. Make a fork of this repository to your personal account
  2. Clone the fork to your local machine
  3. Navigate to the folder class27-react-test
  4. Execute npm install in the root of the folder
  5. Get started with building!

The requirements

  • Create and use at least 3 reusable functional components
  • Make use of React hooks: at least useState
  • Every time a user clicks on the button, it should fetch new users
  • Use the following API: https://randomuser.me/api/?results=5
  • Add a loading state when the data is fetching (find a loading spinner by Googling)
  • Add an error message in the UI if something went wrong

Duration

This test will last 2 hours.

How to submit your test

  1. Push your code to your forked repository
  2. Deploy your test on Netlify
  3. Make a pull request to the original repository, with a message like: React Test <YOUR_NAME>. Include the link to the deployed application URL

Tips:

  1. Whatever you do, stay calm!
  2. Split the problem up into smaller pieces
  3. If something is too difficult, move on to the next thing

Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published