Skip to content

Instantly share code, notes, and snippets.

View gutenberg-datepicker.jsx
const { InnerBlocks } = wp.blockEditor;
const { registerBlockType } = wp.blocks;
const { DatePicker, TextControl } = wp.components;
const { withState } = wp.compose;
const ServerSideRender = wp.serverSideRender;
registerBlockType( 'dev/components', {
title: 'Components',
icon: 'admin-users',