Support » Plugin: Gutenberg » Best practice to code a (simple) plugin with multiple blocks?

  • Hi! I’m in the path to learn how to code my very first Gutenberg/Block editor plugin that for a website I’m working on.

    The thing is: all the examples I find showcase plugins that only add 1 plugin and the plugins I tried to decypher to learn from were way too complicated for my level of understanding of React and all the new concepts

    And all the documentation I find shows how to do it for 1 block. But what if my plugin adds 2, 3 or more blocks? How is the best recommended way to structure it?

    They all are quite simple, I just don’t really know how to structure things. For example should register_block_type be repeated for every block?

    I used create-guten-block to start (along the Css Tricks tutorial).. but’s it all seem to be a bit old and i’m not sure of how updated they are

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.