How to make repeated component/block in Gutenberg


I want to create a custom Gutenberg block with these features below

  • A parent container with repeated child component.
  • The repeated component can be added/removed(if existed before) as many times the user wants.
  • Will have an image upload option for each component

I can’t find the documentation for repeated components or any good code examples. I feel like this a very important part of block development as this kind of blocks are very common in most projects.
So, any code example/documentation or guidance is very much appreciated.

Example: Image Slider with a caption, Multiple ‘card’ like blocks inside a parent block.

, Paranoid Android 3 years 2020-04-03T04:50:55-05:00 0 Answers 103 views 0

Leave an answer