create-react-app appname
cd addname
yarn add --dev concurrently wait-on electron
yarn add electron-is-dev
package.json
{
"name": "my-electron-app",create-react-app appname
cd addname
yarn add --dev concurrently wait-on electron
yarn add electron-is-dev
package.json
{
"name": "my-electron-app",Current
Future
| function useAbortController() { | |
| const ref = useRef(); | |
| useEffect(() => () => ref.current.abort(), []); | |
| return useCallback(() => { | |
| ref.current = new AbortController(); | |
| return ref.current.signal; | |
| }, []); | |
| } |