const StyledDivComponent = ({ className, children }) => { return ( <div className={className}> {children} </div> ); };
edit.js
if (file_exists($block . '/index.php')) { require_once($block . '/index.php'); register_block_type( $block, array( 'render_callback' => 'itmar_render_callback_' . str_replace('-', '_', basename($block)), ) ); }