const updateNote = (currentNote) => {
ref.current.click();
console.log("hey I am the Modal Key");
};
this is the code where I am using the ref , passing this "updateNote" as a prop to Modal component. please refer to the attached link for complete code "https://github.com/app-casting/iNotebook-"
I tried useEffect hook, but that also I am not able to use here.