Gutenberg – Custom blocks not working as expected?
What you are writing in your js file is not “real” Javascript Code, but an extension named “JSX” which can help you write the elements like XML-Code. Before you can “use” the block js file, you first have to “compile” it into “real” Javascript code. You can use npx and webpack for this. The Tutorial … Read more