hooks-by-example

Collection of beginner-friendly real world examples of hook usage.

  • 所有者: latviancoder/hooks-by-example
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Hooks. People love them, people hate them. But one is for sure - hooks are there to stay and React ecosystem is going to evolve, again.

The most important feature of hooks is sharing reusable functionality. In the past it was achieved using mixins, which were later deprecated in favor of patterns like render props and higher order components. But these patterns introduced additional complexity and resulted in something now called wrapper hell.

What is this?

The purpose of this reposity is to provide beginner-friendly real-world examples of different hooks usage. Here are some of them:

This application is built using create-react-app, so feel free to clone the repo and play with examples yourself.

yarn install
yarn start

Todo

More examples, more comments. Pull requests and overall suggestions are welcome.

主要指標

概覽
名稱與所有者latviancoder/hooks-by-example
主編程語言JavaScript
編程語言HTML (語言數: 3)
平台
許可證
所有者活动
創建於2018-11-03 08:44:48
推送於2019-10-31 17:51:16
最后一次提交2019-04-01 20:17:40
發布數0
用户参与
星數136
關注者數1
派生數13
提交數37
已啟用問題?
問題數2
打開的問題數2
拉請求數4
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?