Created
January 23, 2020 05:55
-
-
Save pburtchaell/6eca10a7e570aa24e874fff91544256c 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
import * as React from "react" | |
import { useState } from "react" | |
function CodeComponent(props) { | |
const [color, setColor] = useState("blue") | |
return ( | |
<Frame | |
background={color} | |
onTap={() = > { | |
setColor("green") | |
}} | |
/> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment