Register new blocks without JS

[ad_1]

When we write JSX code, it gets translated to pure static HTML by the save.js function.

Now is it possible to write new Blocks only with HTML, and register them with PHP and skip the JS Step?
I’ve seen the native blocks in wp-includes/blocks, and they work in a similar way.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer