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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs