GithubHelp home page GithubHelp logo

micro-state-app's Introduction

리액트 훅을 이용한 마이크로 상태 관리

예제 따라하기

질문 목록

p93) useStoreSelector를 사용하는 두 컴포넌트 Component1, Compoenen2가 서로 리렌더링을 일으키지 않는다고 설명한다. 하지만, 예제 구현에 따르면 Component1에서 +1을 누를 때나 Compoenent2에서 +1을 누를 때 모두 새로운 객체가 생성되기 때문에 selector의 동작하더라도 setState가 동작하기 때문에 리렌더링이 발생해야 한다. 어떤 이유에서 리렌더링이 일어나지 않는다고 설명하는 것인지?

micro-state-app's People

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.