forked from Minecraft/Stonks
Fix react build warnings
parent
c3286bfa7f
commit
d224ac81d8
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue