danielkapeleti / react-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  2. Clone the fork to your local machine
  3. Navigate to the folder class25-react-test on your machine and execute npm install
  4. Get started with building!

The requirements

  • Create and use at least 3 reusable components
  • Declare state at the top level and pass the props down
  • Make use of React hooks: at minimum 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 spinner through Google)
  • Incorporate error handling

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


Languages

Language:HTML 67.1%Language:CSS 22.0%Language:JavaScript 10.9%