Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 31, 2024
1 parent 8ec075b commit 50117db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/list-reusable-blocks/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { createRoot } from '@wordpress/element';
import { createRoot, StrictMode } from '@wordpress/element';
import { __ } from '@wordpress/i18n';

/**
Expand Down Expand Up @@ -44,6 +44,8 @@ document.addEventListener( 'DOMContentLoaded', () => {
container.className = 'list-reusable-blocks__container';
button.parentNode.insertBefore( container, button );
createRoot( container ).render(
<ImportDropdown onUpload={ showNotice } />
<StrictMode>
<ImportDropdown onUpload={ showNotice } />
</StrictMode>
);
} );

0 comments on commit 50117db

Please sign in to comment.