Giter Site home page Giter Site logo

react-hooks's People

Contributors

alex-cory avatar andarist avatar barakplasma avatar capaj avatar cluk3 avatar craig1123 avatar dependabot[bot] avatar f avatar gnyani avatar haldarmahesh avatar hiddenboox avatar hkulur avatar hupe1980 avatar jacob-ebey avatar mvolkmann avatar nikgraf avatar ntucker avatar pelotom avatar philipp-spiess avatar pocesar avatar quisido avatar raghav-grover avatar rfbotto avatar salvoravida avatar smmoosavi avatar stereobooster avatar streamich avatar swrichards avatar vadzim avatar wardoost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-hooks's Issues

Some ideas to improve usage experience

It's really great to have this, so that I can search every hooks in one page. But as a developer who is seeing this page, I may want to know what are the popular ones.

So, I'd love to see the stars and download counts of each repos, and sort by stars as default.

Scrambled links

Firefox 66.0b9 - Ubuntu 18.04

Current Behavior

  1. Load the page
  2. Links to the hooks' repositories will be scrambled.

Additional context/Screenshots

As you can see at the bottom URL indicator, the links from the hooks are all scrambled.

image

As to why this might be happening, I noticed hooks are being sorted alphabetically after the page loads. Maybe it is related to that?

Consider dropping `use` from headings

For easier scanning/readability consider dropping the use prefix from the hook headings.

e.g. useDeviceMotion -> DeviceMotion

The code snippets themselves make the usage/name quite clear.

Error when using npm and running develop scripts

Bug Report

Current Behavior
Upon running npm run develop, gatsby exits with a Webpack Error:

info bootstrap finished - 2.231 s

error There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html


  WebpackError: Cannot find module 'core-js/modules/es6.object.assign'
  

Reproducible demo
Cleanly clone the repo, npm install dependencies, run npm run develop

Expected behavior/code
Gatsby should start the development server without any errors.

Possible Solution
As pointed out in an issue over at the gatsby repo Error: Cannot find module 'core-js/modules/es6.object.assign', upgrading the gatsby dependency fixes the issue.
Upgrading gatsby also fixed the issue for me.

Additional context/Screenshots

Error screenshot

Filter by tags

Next to the filter input it should be possible to make sure only entries with certain tags are listed. Each tag can be added or removed separately.

Feature: improve subHooks detection

  • Support CJS modules
    • = require()
    • module.export
  • detect "namespaced" hooks e.g. React.useState (currently only detects useState)
  • build actual dependency tree to detect subHooks more precisely, because right now it assumes that hook consists of all imported hooks. This will also allow to support case for multiple hooks per file
  • recursively follow all imports to detect all subdependencies
  • count how much subhooks used per hook

Preprocess hooks.json

I was taking a look at the repo to see if I could add #9 (show preview of hook), and I noticed some aspects of processing the hooks could be improved. This issue can serve as an umbrella issue for the following improvements:

  • Sort hooks.json on every pull request (using TravisCI?)
  • Add unique keys to each hook on every pull request. We probably shouldn't use indices as a key.

Feature: preserve search value in URL

This way it would be possible to share URLs to specific set of hooks, including filtered by the name or by the tag.

It would be trivial to do with something like useUrlState, but Gatsby's router interferes with it and causes infinite loop.

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.