ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 328 forks source link

component does not load in block.js #286

Open nabi009 opened 3 years ago

nabi009 commented 3 years ago

` /**

const { } = wp.i18n; // Import () from wp.i18n const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks const { PlainText, RichText, InspectorControls } = wp.editor; const { Fragment } = wp.element; const { TextControl, ToggleControl, Panel, PanelBody, PanelRow, SelectControl, Dropdown, Button, CheckboxControl } = wp.components; /**

`

`

const { Component } = wp.element;

export class categories extends Component { constructor( props ) { super( ...arguments ); this.props = props; }

render() {
    return (
        <p>categories label</p>

    );
}

}

`