useSwitch.js 139 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 import { useState } from "react"; export default (args) => { const [value, setValue] = useState(args); const onClick = (e) => {}; };