Giter Site home page Giter Site logo

react-hooks's Introduction

10 Hooks for React practice

0. INTRODUCTION

  • #0.2ntroduction to Hooks
  • #0.3 Requirements
  • #0.4 Workflow

1. USESTATE

2. USEEFFECT

  • #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

Custom Hooks what we're making

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

IDE

  • CodeSandbox
    • VSC์™€ server๋“ฑ์ด ์ค€๋น„๋˜์–ด์žˆ๋Š” ํ™˜๊ฒฝ
    • ์†Œ์Šค์ฝ”๋“œ ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด live build๋œ๋‹ค.
    • ์ด๋ฒˆ ๊ฐ•์˜์—์„œ ๋กœ์ปฌ editor๋Š” ์™„์„ฑ๋œ hook์„ ๊ฐ€์ ธ์™€์„œ npm์— ์—…๋ฐ์ดํŠธ ํ•˜๋Š” ์šฉ๋„๋กœ ์‚ฌ์šฉํ•œ๋‹ค.

react-hooks's People

Contributors

slogup-mia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.