React Covid19 complete project part 5 Build your own hook. Write custom hooks. useEffect useState

preview_player
Показать описание
Using React hooks this project fetches data from a REST API and shows the number of people infected, recovered and dead due to the Corona (Covid-19) virus.

In this video, we show how to write your own custom hooks. We show how to build your own hook that could be used in the code anywhere in your app to make drop down boxes for you. You write the custom hook once and then you can use it anywhere to make as many drop down boxes automatically as your app needs. This useDropDown hook is a component that you can use in other apps too making your code reusable.

You also learn how to use useEffect and useState hook apart from fetching data from a REST API endpoint.

Other video in this series are:
--------------------
Other complete projects that use React hooks:
--------------------
If you want to support the channel:

Bitcoin (BTC):
32d4wmxD9BfcHKJSRp4x8mCPRnjvCrXWk5

Bitcoin Cash (BCH):
Qzclr898wn9xaetpzew8f96sz9zr4ha0353zx55ptl

Ethereum (ETH):
0xA992193aaF853D995e733B9C71F9E8E027FCE0d6

Litecoin (LTC):
MQEWmtxhMjh6eGxbhTy4dw9jSo6auJyupm

BAT (Basic Attention Token):
0xd06BFBAFf846C28362cf28F9e9Ae98AF82860D38
--------------------
Рекомендации по теме
join shbcf.ru