mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
restructure files onto electron-vite boilerplate
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// From https://learnersbucket.com/examples/interview/usehasfocus-hook-in-react/
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export const useAppFocus = () => {
|
||||
const [focus, setFocus] = useState(document.hasFocus());
|
||||
|
||||
Reference in New Issue
Block a user