Ioan Biticu
Ioan Biticu
I think this library is not maintained anymore
Thanks guys. Also useful: https://gist.github.com/syuji-higa/269b329b6c391fbdc96131b6a44bfcb3
Here is what I ended up doing: let [noSleepEnabled, setNoSleepEnabled] = useNoSleep() let handleNoSleepClick = () => { setNoSleepEnabled(!noSleepEnabled) } .... import NoSleep from "nosleep.js"; import { useEffect, useMemo, useState...