const {registerBlockType} = wp.blocks; //Blocks API const {createElement} = wp.element; //React.createElement const {__} = wp.i18n; //translation functions registerBlockType( 'caldera-learn-basic-blocks/post-title', { title: __( 'Show a post title' ), // Block title. category: __( 'common' ), //category //display the edit interface + preview edit(attributes,setAttributes){ return createElement('div', {}, 'Hello from block edit callback' ) }, save(){ return null;//save has to exist. This all we need } });