import { createRoot } from '@wordpress/element'; import SocialComponent from './social-component.js'; export const SocialControl = wp.customize.KadenceControl.extend( { renderContent: function renderContent() { let control = this; let root = createRoot( control.container[0] ); root.render( <SocialComponent control={ control } /> ); // ReactDOM.render( <SocialComponent control={ control } />, control.container[0] ); } } );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
control.js | File | 437 B | 0644 |
|
icons.js | File | 45.51 KB | 0644 |
|
item-component.js | File | 8.36 KB | 0644 |
|
social-component.js | File | 12.98 KB | 0644 |
|