Skip to content

Instantly share code, notes, and snippets.

@pburtchaell
Created January 23, 2020 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pburtchaell/6eca10a7e570aa24e874fff91544256c to your computer and use it in GitHub Desktop.
Save pburtchaell/6eca10a7e570aa24e874fff91544256c to your computer and use it in GitHub Desktop.
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