a working react/php dynamic wordpress block example integrated with the Vite build process

This commit is contained in:
2025-12-10 19:44:32 +00:00
parent b16bd77355
commit 917150bbe6
15 changed files with 247 additions and 34 deletions

View File

@@ -0,0 +1,12 @@
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>
);
},
});