const {registerBlockType} = wp.blocks; //Blocks API const {createElement} = wp.element; //React.createElement const {__} = wp.i18n; //translation functions const {InspectorControls} = wp.editor; //Block inspector wrapper registerBlockType( 'caldera-learn-basic-blocks/post-title', { title: __( 'Show a post title' ), // Block title. category: __( 'common' ), //category //display the post title edit(attributes,setAttributes){ return createElement('div', {}, [ createElement( 'div', {}, 'Put Preview here' ), createElement( InspectorControls, {}, 'Inspector Controls' ) ] ) }, save(){ return null;//save has to exist. This all we need } });