How to load an additional script for a block in the block editor?
BUT, for some reason, the accordion function from jQuery UI doesn’t get attached to the .accordion class of my block in the block editor, so the accordion effect doesn’t work. The ServerSideRender component uses the REST API to fetch the dynamic block output, hence the above issue happens because by the time the DOM is … Read more