Greetings!
First of all, thank you for this awesome library!
In conditions where I use the library, there is a possibility that a value doesn't exist or just doesn't need it.
Therefore, I have just a little suggestion to simplify the logic of the hook useColorPicker and remove the check (and remove console.log).
Business logic can be different, and saying in an imperative approach that you must provide a value is not the optimal case for everyone.
Greetings! First of all, thank you for this awesome library!
In conditions where I use the library, there is a possibility that a
value
doesn't exist or just doesn't need it. Therefore, I have just a little suggestion to simplify the logic of the hook useColorPicker and remove the check (and removeconsole.log
). Business logic can be different, and saying in an imperative approach that you must provide a value is not the optimal case for everyone.