From 13f29810bddf5d26c8bbc4f6980c65f0b74b0a62 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Sun, 11 Jul 2021 18:57:50 +0900 Subject: [PATCH] Add useEffect dependency and remove unused import --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index eaada8e..73af7d1 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ import './App.css'; import React, {useState,useEffect,useRef} from 'react'; -import ReactWindow from 'reactjs-windows' +//import ReactWindow from 'reactjs-windows' import 'reactjs-windows/dist/index.css' function Col(p) { @@ -135,7 +135,7 @@ function useOutsideAlerter(ref,setEdit) { // Unbind the event listener on clean up document.removeEventListener("mousedown", handleClickOutside); }; - }, [ref]); + }, [ref,setEdit]); }