import React, { useState } from "react"; import { HandyMode } from "thehandy/lib/types"; import useHandy from "../../src"; const HandyTest = () => { const { connectionKey, connect, getInfo, sendMode, sendHampStart, sendHampStop, sendHampVelocity, } = useHandy(); const [versionResponse, setVersionResponse] = useState(""); return (

Connection key is {connectionKey}

connect(e.target.value)} />










); }; export default HandyTest;