React Hooks

이재진·2021년 1월 13일
0
post-thumbnail

Problem of Classical React

  1. Classes confuse both people and machines
    (This binding, Binding event handlers...)
  2. Complex components become hard to understand
    (이해가 어려운 복잡한 컴포넌트 + cDM, cDU, cWU...)
  3. reusing stateful logic between components
    (로직 재활용에 유용한 HOC, render props의 문제점)

"Hook" the logic

필요한 것(stateful logic) 만 Hook하여 쓰자!

profile
개발블로그

0개의 댓글