use deffect
for react.
The same useEffect
as always, just as defective. 👌
npm i deffect
import { useDeffect } from "deffect";
const Component = (props) => {
useDeffect(() => {
console.log("a defective react hook");
}, [...deps]);
return <>your stuff</>;
};
Licensed MIT