Skip to content

Instantly share code, notes, and snippets.

@jorgefilipecosta
Created May 3, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgefilipecosta/94673924b3c426f2a0cb3c7fa179a984 to your computer and use it in GitHub Desktop.
Save jorgefilipecosta/94673924b3c426f2a0cb3c7fa179a984 to your computer and use it in GitHub Desktop.
/**
* External dependencies
*/
import '@babel/polyfill';
/**
* WordPress dependencies
*/
import '@wordpress/editor'; // This shouldn't be necessary
import { render, useState, Fragment } from '@wordpress/element';
import {
BlockEditorProvider,
BlockList,
WritingFlow,
ObserveTyping,
} from '@wordpress/block-editor';
import { Popover, SandBox } from '@wordpress/components';
import { registerCoreBlocks } from '@wordpress/block-library';
import '@wordpress/format-library';
/* eslint-disable no-restricted-syntax */
import '@wordpress/components/build-style/style.css';
/* eslint-enable no-restricted-syntax */
const MySandBox = () => (
<SandBox
html="<p>Content</p>"
title="Sandbox"
type="embed"
/>
);
render(
<MySandBox />,
document.querySelector( '#app' )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment