Creating a custom block that stores post meta – WordPress Developer Blog
Learn how to create a custom dynamic block that saves information to custom post_meta and creates a one-to-one experience in both the block editor and on the front end. You will see an example of how to to use @wordpress/create-block package to scaffold a block.