Git Product home page Git Product logo

sandbox-useeffect-debug's Introduction

useEffect Debug

In this practice you will debug an app that uses the useEffect hook.

Setup

Click the Download Project button at the bottom of this page to go to the starter repo, then load the repo into CodeSandbox.

Instructions

The app should start out with a welcome page and a Login button.

When you click the button you should see a random user from the randomuser.me api on the left with information and a logout button beneath the image. (The reduced browser dimensions in CodeSandbox mean that this random user may appear on top instead of to the left.) On the right there should be a search box where, if you input a different username, the app will show a new user on the left. The names will not coordinate with each other. If you put in the same name again, however, the picture will not change, and if you repeat a name, it will show the person that was originally coordinated with that name.

When you log out, you should be directed back to the welcome page.

If you refresh the page or logout and login again, you should see the last user that was showing.

When you first run the app, it will have 8 errors (including console warnings). Your task is to find and correct all 8 so that the app works correctly and without warnings. Make sure that every feature mentioned above works as described.

Good Luck!

sandbox-useeffect-debug's People

Contributors

judhistira avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.