steveruizok
5/7/2019 - 9:07 AM

Switch

Creates a tap handler to flip our Swich's state.

import * as React from "react"
import { Frame } from "framer"


export function Switch(props) {
    const [state, setState] = React.useState({
        isOn: false,
    })

   
    const flipSwitch = () => {
        setState({
            isOn: !state.isOn,
        })
    }

    return (
        <Frame size="100%"/>
    )
}