daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2.  
  3. export const HexInput = ({ hex, setHex }) => {
  4.   const onChange = ({ target: { value } }) => {
  5.     setHex(value);
  6.   };
  7.  
  8.   return (
  9.     <label>
  10.       Hex:
  11.       <input value={hex} onChange={onChange} />
  12.     </label>
  13.   );
  14. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top