Advertisement
Guest User

Untitled

a guest
Nov 19th, 2021
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Form.Check type={'switch'}
  2.     className={'form-switch'}
  3.     disabled={!v.state.reachable}
  4.     defaultChecked={v.state.on}
  5.     onChange={({ target }) => {
  6.     lightArray[idx].state.on = target.checked;
  7.     setLightArray([...lightArray]);
  8.     turnLightOnOrOff(idx + 1, target.checked);
  9. }}/>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement