Last active
May 8, 2019 04:48
-
-
Save gaperton/089adc4af7b5838d3dbcf1dcd9ddcbaf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const DelayedInput = ({ $value, timeout = 1000, …props }) => { | |
const $inputValue = useBoundLink( $value ); | |
// TODO: How to sync the state back? | |
return <input {…$inputValue.props} {…props}/>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment