This content originally appeared on DEV Community and was authored by Francis Ngugi
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
This content originally appeared on DEV Community and was authored by Francis Ngugi
Francis Ngugi | Sciencx (2024-06-16T17:46:45+00:00) Day 2 of 30… Forgot to post the blog. Retrieved from https://www.scien.cx/2024/06/16/day-2-of-30-forgot-to-post-the-blog/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.