Switch Tutorial HandleTap
import * as React from "react"
import { Frame } from "framer"
export function Switch() {
const [state, setState] = React.useState({
isOn: false,
})
const handleTap = () => {
setState({
isOn: !state.isOn,
})
}
return (
<Frame size="100%" onTap={handleTap}>
{state.isOn.toString()}
</Frame>
)
}