A convenient way to display the block in the editor :
import ServerSideRender from '@wordpress/server-side-render';
export default function Edit( { attributes, setAttributes } ) {
return (
<ServerSideRender
block="dev/some-block"
attributes={attributes}
/>
);
}
Without module : <wp.blockEditor.ServerSideRender block="custom/menu-display" attributes={attributes} />
Source: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-server-side-render/