Created
January 23, 2019 16:46
-
-
Save assassinave/83956e7f2252d511b91f85e936c1e694 to your computer and use it in GitHub Desktop.
Show value of input field in different output
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
import { Override, Data } from 'framer'; | |
const dataText = Data({ text: 'Hello World!' }); | |
export const TextChangingInput: Override = () => { | |
return { | |
onValueChange: (text: string) => { | |
dataText.text = text; | |
}, | |
}; | |
}; | |
export const TextChangingOutput: Override = () => { | |
return { | |
text: dataText.text, | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment