Skip to content

Instantly share code, notes, and snippets.

@mharis
Created Mar 30, 2020
Embed
What would you like to do?
/**
* External dependencies
*/
import root from 'react-shadow';
/**
* WordPress dependencies
*/
import { Component } from '@wordpress/element';
import { ServerSideRender } from '@wordpress/editor';
/**
* Block edit function
*/
export class Edit extends Component {
render() {
return (
<root.div>
<ServerSideRender
block="my-blocks/my-block"
/>
</root.div>
);
}
}
export default Edit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment