Files
sage/resources/views/blocks/example/index.jsx

13 lines
299 B
JavaScript

import { registerBlockType } from '@wordpress/blocks';
registerBlockType('badegg/example', {
apiVersion: 3, // optional in JS, primarily in block.json
edit() {
return (
<section className="block-badegg-example">
<h2>Bad Egg Block Example</h2>
</section>
);
},
});