Gutenberg consume wp-json data and reflect in frontend the content
What you are building is called ‘Dynamic Block‘ and Your block will not work because you haven’t added the front end code ( which is the PHP part for dynamic block ). See this official block code there’s PHP part as well to save the block and work on the front end. Here’s the official … Read more