( function( wp ) {
const registerBlockType = wp.blocks.registerBlockType;
const el = wp.element.createElement;
const __ = wp.i18n.__;
registerBlockType( 'room-vw/room-vw-hero', {
title: __( 'RoomWaVW hero block', 'room-vw' ),
category: 'widgets',
supports: {
// Removes support for an HTML mode.
html: false,
},
edit( props ) {
return (
- Yah from jsx insides the editor
)
},
save() {
return (
- Yah from jsx outsides the editor
)
},
} );
}(
window.wp
) );