mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add boilerplate for react settings app
This commit is contained in:
parent
53af77897f
commit
9c5d978707
14 changed files with 10671 additions and 2 deletions
18
modules/ppcp-settings/resources/js/index.js
Normal file
18
modules/ppcp-settings/resources/js/index.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import React from 'react';
|
||||
import * as ReactDOM from 'react-dom/client';
|
||||
import { App } from './App';
|
||||
|
||||
ReactDOM.createRoot(
|
||||
document.getElementById( 'ppcp-settings-container' )
|
||||
).render( <App /> );
|
||||
|
||||
/*
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { App } from './App';
|
||||
|
||||
createRoot( document.getElementById( 'ppcp-settings-container' ) ).render(
|
||||
<App />
|
||||
);
|
||||
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue