Coder Social home page Coder Social logo

jonyw4 / color-thief-react Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 6.0 1.36 MB

🎨 A React component with hooks for Color Thief. Grab color palette from an image with javascript

Home Page: https://codesandbox.io/s/color-thief-react100-zh6f8

License: ISC License

JavaScript 1.77% TypeScript 98.23%
color-thief color-thief-hooks color-thief-react javascript palette react react-color-thief react-color-thief-hooks

color-thief-react's Introduction

color-thief-react's People

Contributors

cagespence avatar dependabot[bot] avatar jonyw4 avatar renovate-bot avatar yepmad 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

Watchers

 avatar

color-thief-react's Issues

Bug with the hook proccess

Hello I tried to use you color-thief-react but I still have this annoying error about react rules...

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app
    See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

Capture d’écran, le 2020-11-09 aΜ€ 11 08 29

I wonder if you can help me to understand what's going on ....

I'm on react 17 and I'm using typeScript

useColor hook

When using the hook as follows,

const imageSrc = "https://live.staticflickr.com/65535/50237066832_72c7290c5c_c.jpg";
const { data, loading, error } = useColor(imageSrc, "hex");
console.log(data);

data seems always to be undefined. Very possible that this is something I'm doing wrong. Any ideas?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency codecov to v3.8.3
  • chore(deps): update dependency typescript to v4.9.5
  • fix(deps): update dependency tslib to v2.6.2

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency coveralls to v3.1.1
  • chore(deps): update dependency eslint-plugin-prettier to v3.4.1
  • chore(deps): update dependency prettier to v2.8.8
  • fix(deps): update dependency colorthief to v2.4.0
  • fix(deps): update dependency prop-types to v15.8.1
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency @testing-library/react to v15
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-jest to v28
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update jest monorepo to v29 (major) (@types/jest, jest, ts-jest)
  • chore(deps): update react monorepo to v18 (major) (@types/react, @types/react-dom, react, react-dom)
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • πŸ” Create all rate-limited PRs at once πŸ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/main.yml
  • actions/checkout v2
  • actions/setup-node v1
npm
package.json
  • colorthief 2.3.2
  • prop-types 15.7.2
  • tslib 2.0.3
  • use-current-effect 2.1.0
  • react 17.0.1
  • react-dom 17.0.1
  • @commitlint/cli 11.0.0
  • @commitlint/config-conventional 11.0.0
  • @testing-library/react 10.4.9
  • @types/jest 26.0.20
  • @types/react 16.9.46
  • @types/react-dom 16.9.8
  • @typescript-eslint/eslint-plugin 4.4.1
  • @typescript-eslint/parser 4.4.1
  • canvas 2.6.1
  • codecov 3.8.0
  • coveralls 3.1.0
  • eslint 7.20.0
  • eslint-config-prettier 6.12.0
  • eslint-plugin-jest 23.20.0
  • eslint-plugin-prettier 3.3.1
  • eslint-plugin-react 7.21.4
  • eslint-plugin-react-hooks 4.2.0
  • husky 4.3.0
  • jest 26.4.0
  • prettier 2.2.1
  • semantic-release 17.2.3
  • ts-jest 26.2.0
  • typescript 4.1.5
  • react >= 16.8.0
  • react-dom >= 16.8.0

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

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.