Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ServerSideRender block
const {ServerSideRender} = wp.components;
wp.blocks.registerBlockType('test/ssr', {
title: 'Post Archiv',
icon: 'grid-view',
category: 'my-category',
edit(props) {
return <ServerSideRender block="test/ssr"/>
},
save() {
return null;
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment