2022-11-15 10:12:17 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2024-08-19 11:52:24 +00:00
|
|
|
// @ts-expect-error -- @wordpress/element doesn't export createRoot until WP6.2
|
|
|
|
// eslint-disable-next-line @woocommerce/dependency-group
|
|
|
|
import { createRoot } from '@wordpress/element';
|
2022-11-15 10:12:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import WCAddonsTour from '../../guided-tours/wc-addons-tour/index';
|
|
|
|
|
|
|
|
const root = document.createElement( 'div' );
|
|
|
|
root.setAttribute( 'id', 'wc-addons-tour-root' );
|
2024-08-19 11:52:24 +00:00
|
|
|
|
|
|
|
createRoot( document.body.appendChild( root ) ).render( <WCAddonsTour /> );
|