CreatePortal is not working inside didOpen attribute of SweetAlert2
I have a handler for a button to create a new “courseSession”. The handler displays a sweetAlert2 popup box.
I am trying to integrate the react component “DayPicker” from ‘react-day-picker’ dependency into the popup html container. I tried to apply this logic inside the didOpen attribute but it doesn’t work. According to the documentation, the DOM elements are already created, so i suppose that “createPortal” should work.