Add new form editor hello world
[SHOP-2450]
This commit is contained in:
committed by
Jack Kitterhing
parent
7655a3dd55
commit
ac0fd14c7c
14
assets/js/src/form_editor/index.jsx
Normal file
14
assets/js/src/form_editor/index.jsx
Normal 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
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user