This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { __ } = wp.i18n; // Import __() from wp.i18n | |
const { registerBlockType, RichText, UrlInput, InspectorControls, PanelColor, ColorPalette } = wp.blocks; | |
/** | |
* This class registers a custom block type, by creating the | |
* controls and updating the values automatically. It also allows passing a single | |
* render function to avoid repetitive code in edit and update. | |
*/ | |
class MyCustomComponent{ |