WP Gutenberg – custom block with two content fields

You don’t need propstwo. It doesn’t serve any purpose. There’s only one props argument, and you use it to get access to your block’s attributes. Both header and content are attributes, so you access both of them through the same props argument: wp.blocks.registerBlockType(‘myblock/question-block’, { title: ‘Blok Pytan’, icon: ‘dashicons-welcome-write-blog’, category: ‘common’, attributes: { header: { … Read more