Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Last active March 18, 2019 22:50
Show Gist options
  • Select an option

  • Save ajcrites/a45faf66f1883654386e8494335ad3ff to your computer and use it in GitHub Desktop.

Select an option

Save ajcrites/a45faf66f1883654386e8494335ad3ff to your computer and use it in GitHub Desktop.
import React, { useState } from 'react';
import { HexInput } from '~/HexInput';
import { RgbaInput } from '~/RgbaInput';
export const ColorToolApp = () => {
const [hex, setHex] = useState('');
const [rgba, setRgba] = useState([0, 0, 0, 0]);
return (
<main>
<HexInput />
<RgbaInput />
</main>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment