1

I want to use this library in my react project

https://www.npmjs.com/package/color-convert

But I couldn't find this package for Reactjs Application. Please provide a solution to use this package in my reactjs application without any issue.

Thanks in Advance.

1
  • 1
    You can use this package right away in your application. just npm install it and require/import it Commented Jun 30, 2020 at 7:54

1 Answer 1

1

Its npm package, you can use it in your React application as is.

npm install color-convert

# or
yarn add color-convert
import convert from 'color-convert';

const App = () => {
  const [hsl,setHsl] = useState(convert.rgb.hsl(140, 200, 100));
  return <>...</>
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.