Created
March 30, 2020 18:38
-
-
Save mharis/322aac357fababfd0cf98885e4b7b78c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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