- #0.2ntroduction to Hooks
- #0.3 Requirements
- #0.4 Workflow
- #1.0 Introduction to useState
- #1.1 userInput
- #1.2 userInput part Two
- #1.3 useTabs
- #2.0 Introduction to useEffect
- #2.1 useTitle
- #2.2 useClick
- #2.3 useConfirm & usePreventLeave
- #2.4 useBeforeLeave
- #2.5 useFadeIn & useNetwork
- #2.6 useScroll & useFullscreen
- #2.7 useNotification
- #2.8 useAxios
- #2.9 Conclusions
- ๋ฆฌ์กํธ ๋ด์ฅ ํ ๋๋ vanilla React๋ก Crazy Creative ์ปค์คํ ํ ์ ๋ง๋ค์ด๋ณด์
- "Use Hooks, Use Your Brain!"-Nicolas,Nomad Coder
- #2.10 Publishing to NPM
- #2.11 That to learn next
Collection of React Hooks ready to install with NPM
- useTitle : React doc title ์ hook๊ณผ ํจ๊ป ๋ฐ๊พธ๋ ๊ฒ
- useInput : input์ญํ
- useBeforeLeave : ์ ์ ๊ฐ ํ์ด์ง๋ฅผ ๋ฒ์ด๋๋ ์์ ์ ๋ชจ๋ํฐํ๊ณ ํจ์ ์คํ
- useClick : ํด๋ฆญ ์์ ๋ชจ๋ํฐ
- useFadeIn : ์ด๋ค element๋ ์ ๋๋ฉ์ด์ ์ element์์ผ๋ก fade in ํ๊ฒ ํจ
- useFullscreen : ์ด๋ค element๋ Full screen์ผ๋ก ๋ง๋ค๊ฑฐ๋ ๋ค์ ๋์๊ฐ๊ฒ ํจ
- useHover : ํธ๋ฒ ์์ ๋ชจ๋ํฐ
- useNetwork : ์จ/์คํ๋ผ์ธ ์ํ ๊ฐ์ง
- useNotification : Notification API ์ฌ์ฉ์ ์๋ฆผ ๋ณด๋
- useScroll : ์คํฌ๋กค ๋ชจ๋ํฐ
- useTabs : ํญ์ ํธ๋ฆฌํ๊ฒ ๋ง๋ค์ด์ค
- usePreventLeave : ๋ณ๊ฒฝ์ฌํญ์ ์ ์ฅํ์ง ์๊ณ ํ์ด์ง๋ฅผ ๋ฒ์ด๋๋๋ก ํจ
- actually It's not a react hook as not to use useEffect or useState
- useConfirm
- actually It's not a react hook as not to use useEffect or useState
- useAxios
- CodeSandbox
- VSC์ server๋ฑ์ด ์ค๋น๋์ด์๋ ํ๊ฒฝ
- ์์ค์ฝ๋ ๋ณ๊ฒฝ์ฌํญ์ด live build๋๋ค.
- ์ด๋ฒ ๊ฐ์์์ ๋ก์ปฌ editor๋ ์์ฑ๋ hook์ ๊ฐ์ ธ์์ npm์ ์ ๋ฐ์ดํธ ํ๋ ์ฉ๋๋ก ์ฌ์ฉํ๋ค.