Difference between register_block_type & wp.blocks.registerBlockType
The documentation says register_block_type() “registers a block type”.. Yes, it does the same job but in PHP rather than javascript. register_block_type can also be used to load in JS blocks. You can register a block and declare the CSS/JS/etc files to load. For example, see this code snippet posted in the comments of the official … Read more