Difference between register_block_type & wp.blocks.registerBlockType
I am creating a plugin that is supposed to add custom blocks to Gutenberg. I have registered and built all my blocks using WordPress’s JavaScript function wp.blocks.registerBlockType(). It works just as I expected, but recently I found out that WordPress also has a PHP function called register_block_type().