Created
August 7, 2020 16:35
-
-
Save codearryaas/8b5d78642635e86ae895feca72c1c350 to your computer and use it in GitHub Desktop.
Revisions
-
codearryaas created this gist
Aug 7, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import { render } from '@wordpress/element' import domReady from '@wordpress/dom-ready'; const App = () => { return <>Welcome to WP react Tuts</> } domReady(function () { if ('undefined' !== typeof document.getElementById('wp-react-plugin-test-app') && null !== document.getElementById('wp-react-plugin-test-app')) { render(<App />, document.getElementById('wp-react-plugin-test-app')); } });