Code. Free public domain CC0

Developing WordPress Blocks without React

One of the most common complaints I hear from long term WordPress developers boils down to the fact that to develop blocks for the WordPress Block Editor, you need to set up the JavaScript development environment (Node.js + npm + @wordpress/scripts) in order to start building blocks.

This is not entirely true, as it is in fact possible to build blocks without any of this, and just use vanilla JavaScript.

I covered the basics of what this could look like in a series on Online Workshops last year:

Note: for those who prefer to learn by reading/looking at code, there’s also a companion GitHub repository:

https://github.com/jonathanbossenger/wp-learn-javascript

Block basics

Implementing Attributes

Using Attributes with existing Components

Implmenting Block Controls

Block Supports

Putting it all together


Posted

in

by

Tags:

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: