Giter Club home page Giter Club logo

use-event-hook's Introduction

useEvent

useEvent를 연습해보기 위한 레포입니다.

useEvent는 react hooks 중 하나입니다. useEvent로 생성된 함수는 절대로 재생성되지 않고, 항상 동일한 참조값을 가집니다. useCallback과 유사하게 함수를 메모제이션 하는 도구라고 생각하시면 좋습니다.

주의, useEvent는 아직 정식 hook은 아닙니다. React RFC에 제안되고 있는 훅 중 하나입니다.

Playground

  • React Developer Tools을 설치 후 Profiler 기능을 통해 리렌더링을 확인해보시는 걸 추천합니다.
  • Link : https://use-event-hook.vercel.app
  • Endpoints
    • /1-useState : useState
    • /2-react-memo : useState + React.memo
    • /3-use-callback : useState + React.memo + useCallback
    • /4-use-event : useState + React.memo + useEvent

References

use-event-hook's People

Contributors

mugglim avatar

Stargazers

 avatar  avatar

Watchers

 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.