Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Last active March 18, 2019 22:00
Show Gist options
  • Save ajcrites/22989f2bee9a9ec447a9e15efe6cbc5f to your computer and use it in GitHub Desktop.
Save ajcrites/22989f2bee9a9ec447a9e15efe6cbc5f to your computer and use it in GitHub Desktop.
@@ -10,7 +10,7 @@ export const ColorInput = () => {
useEffect(() => {
input.current.value = '!';
if ('!' === input.current.value) {
setShow(false);
}
- });
+ }, []);
const onChange = ({ target: { value } }) => {
setHex(value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment