text: 'use strict';
  let { useState, useCallback } = require('react');
  
  function useInputValue(initialValue) {
    let [value, setValue] = useState(initialValue);
    let onChange = useCallback(function(event) {
      setValue(event.currentTarget.value);
    }, []);
  
    return {
      value,
      onChange,
    };
  }
  
  module.exports = useInputValue;
  