Ecommerce Shopify WordPress Discussion

How can be written wp.element.createElement('img' into a registerBlockType?

I am looking for a solution to this question about WordPress Blocks. I have a plugin that create a brand new block of an img tag. I would know how to display it in the wp.blocks.registerBlockType function. Thanks in advice! In the code of the js file I have put this for the result part: save: function(props) { return wp.element.createElement( 'img', {src: "https://api.nasa.gov/assets/img/general/apod.jpg"} ); } It's not correct. WordPress display the Attempt Recovery message. What is wrong with it?
Ok, sorry. I found the problem with it! The code is correct. I Hope can help anyway.

February 26, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.