Can we write custom DOM manipulation inside edit.js file while developing custom Gutenberg block?
I have doubts while creating a custom Gutenberg block are we allowed to directly manipulate DOM? Yes but not in the way you’ve done, that’s not how React code works. When a react component is no longer shown it ceases to exist, and the associated DOM node vanishes, along with all its event handlers. This … Read more