Skip to content

Instantly share code, notes, and snippets.

@mharis
Created March 30, 2020 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mharis/322aac357fababfd0cf98885e4b7b78c to your computer and use it in GitHub Desktop.
Save mharis/322aac357fababfd0cf98885e4b7b78c to your computer and use it in GitHub Desktop.
/**
* 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