Add new form editor hello world

[SHOP-2450]
This commit is contained in:
Rostislav Wolny
2019-10-16 15:14:25 +02:00
committed by Jack Kitterhing
parent 7655a3dd55
commit ac0fd14c7c
4 changed files with 52 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';
const appElement = document.querySelector('#mailpoet_form_edit');
if (appElement) {
ReactDOM.render(
<h1>
Here comes editor for:
{window.mailpoet_form_data.name}
</h1>,
appElement
);
}