PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 All 106 releases
wp-parsely / src / blocks / recommendations / view.tsx

view.tsx in Parse.ly 3.24.2, at src/blocks/recommendations/view.tsx

25 lines 615 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import domReady from '@wordpress/dom-ready';
5 import { render } from '@wordpress/element';
6
7 /**
8 * Internal dependencies
9 */
10 import { ParselyRecommendations } from './components/parsely-recommendations';
11 import { RecommendationsStore } from './recommendations-store';
12
13 domReady( () => {
14 const blocks = document.querySelectorAll( '.wp-block-wp-parsely-recommendations' );
15 blocks.forEach( ( block ) =>
16 render(
17 <RecommendationsStore>
18 { /* @ts-ignore */ }
19 <ParselyRecommendations { ...block.dataset } key={ block.id } />
20 </RecommendationsStore>,
21 block
22 )
23 );
24 } );
25