hooks-by-example

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

  • Owner: latviancoder/hooks-by-example
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerlatviancoder/hooks-by-example
Primary LanguageJavaScript
Program languageHTML (Language Count: 3)
Platform
License:
所有者活动
Created At2018-11-03 08:44:48
Pushed At2019-10-31 17:51:16
Last Commit At2019-04-01 20:17:40
Release Count0
用户参与
Stargazers Count136
Watchers Count1
Fork Count13
Commits Count37
Has Issues Enabled
Issues Count2
Issue Open Count2
Pull Requests Count4
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private