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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?