Gutenberg will have code examples 2022

#Gutenberg data store docs will now have code examples about the plugin

In a Tweet earlier today, #WordPress Parent company #Automattic’s Dev Relations advocate shared that they will add examples to the #gutenberg datastore docs.gutenberge data store docs update for examples by ryan welcherFew examples are as below

getActiveBlockVariation

Returns the active block variation for a given block based on its attributes.
Variations are determined by their isActive property.
Which is either an array of block attribute keys or a function.

If you like to read more about #gutenberg and this update specifically, Please check the link here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.