1. 7
    Compare the Gutenberg Editing Experience with the Resulting REST API Structure
    2m 17s

Compare the Gutenberg Editing Experience with the Resulting REST API Structure

Share this video with your friends

Send Tweet

In this lesson, we explore the Gutenberg editor and discuss how this is reflected in the database. Gutenberg has endless options of how you can create and style posts in the WordPress UI. There are plenty of content blocks to choose from and each of those blocks has several options with how you can customize the content to your needs.

The downfall of this experience is how it is exposed in the API from the database. The whole post is saved to the database as a single rendered blob of HTML. This blob has to be parsed and handled on the front-end without the context of the blocks in the editor. If you were using React, you would need to use dangerouslySetInnerHTML which is not optimal.