DEV Community

Francis Ngugi
Francis Ngugi

Posted on

Day 2 of 30... Forgot to post the blog

On the 2nd day of the challenge, I learned how to use the useEffect hook and fetch data from a mock server and display it on the DOM which was quite tricky to get the hang of but I am still managing to learn more of React.JS.

What I did on that day:
i) Made a quiz app where useEffect was used to add a timer functionality for each qsn:

The code: https://github.com/FrancisNgigi05/react-hooks-use-effect-lab

ii) Used useEffect to fetch data from a mock server API:

The code: https://github.com/FrancisNgigi05/react-hooks-simple-data-fetching-lab

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more