Fix react build warnings

main
Kevin Belisle 2021-09-03 11:49:42 -04:00
parent c3286bfa7f
commit d224ac81d8
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from "react";
import { useEffect, useRef, useState } from "react";
function useHover() {
const [value, setValue] = useState(false);
@ -16,8 +16,8 @@ function useHover() {
node.removeEventListener("mouseout", handleMouseOut);
};
}
},
[ref.current] // Recall only if ref changes
} //,
//[ref.current] // Recall only if ref changes
);
return [ref, value];
}