I am not able to add ref to a react bootstrap modal. I am getting error related to " ref.current.click();"

31 Views Asked by At
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.

0

There are 0 best solutions below