2023-03-28 17:49: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';
|
2023-03-28 17:49:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { VariableProductTour } from '../../guided-tours/variable-product-tour';
|
|
|
|
|
|
|
|
const root = document.createElement( 'div' );
|
|
|
|
root.setAttribute( 'id', 'variable-product-tour-root' );
|
2024-07-04 08:38:19 +00:00
|
|
|
|
|
|
|
createRoot( document.body.appendChild( root ) ).render(
|
|
|
|
<VariableProductTour />
|
|
|
|
);
|