update snippets

This commit is contained in:
Ray Elliott 2020-05-10 21:23:19 +00:00
commit 14a25c725c
2 changed files with 27 additions and 11 deletions

View file

@ -130,8 +130,8 @@ registerBlockType( '${1:namespace}/${2:block-name}', {
icon: '${4:universal-access-alt}',
category: '${5:layout}',
example: {},
edit() {
return <div style={ blockStyle }>Hello World, step 1 (from the editor).</div>;
edit( { className } ) {
return <div className={ className }>Hello World, step 1 (from the editor).</div>;
},
save() {
return <div style={ blockStyle }>Hello World, step 1 (from the frontend).</div>;