2022-06-09 05:02:40 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2024-07-04 08:38:19 +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-06-09 05:02:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-08-12 01:49:18 +00:00
|
|
|
import { ProductTour } from '../../guided-tours/add-product-tour/index';
|
2022-06-09 05:02:40 +00:00
|
|
|
|
|
|
|
const root = document.createElement( 'div' );
|
|
|
|
root.setAttribute( 'id', 'product-tour-root' );
|
2024-07-04 08:38:19 +00:00
|
|
|
|
|
|
|
createRoot( document.body.appendChild( root ) ).render( <ProductTour /> );
|