Created
May 3, 2019 12:14
-
-
Save jorgefilipecosta/94673924b3c426f2a0cb3c7fa179a984 to your computer and use it in GitHub Desktop.
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
/** | |
* 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