What you will learn in this video?
1. What is useEffect?
2. When useEffect is triggered?
3. Not setting dependencies means run this useEffect each time something happen.
4. Set as empty array dependencies means only run this useEffect once.
5. Set state dependencies means useEffect run each time the state changes.
6. See the correct count displayed on log message, not like in the previous video.
7. Good Habit: Update on Github.
This Video Series Link: • ReactJS + ReactStrap + Bun [Newbie Series]
Previous Video: 5. Simple React UseState Hook
Links:
Reactstrap Documentation: https://reactstrap.github.io/?path=/s...
Github link: https://github.com/AkiraToya/basicbun...
This Github commit link: https://github.com/AkiraToya/basicbun...
To clone:
1. Go to terminal and go to the project folder you want.
2. Type "git clone https://github.com/AkiraToya/basicbun... ." ( dot means current folder )
3. Type "git checkout 4184e5e8ae67014779dab3e3f02c89a5c31fa277"
Timecode:
00:00 What & When useEffect Triggered.
00:43 Empty useEffect Dependencies.
00:56 Use count state as useEffect dependencies.
01:30 Update to Github
Thanks for watching. Hope this video series helps you learn faster.