How to use the @wordpress/core-data.useEntityBlockEditor function in @wordpress/core-data

To help you get started, we’ve selected a few @wordpress/core-data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WordPress / gutenberg / packages / block-library / src / template-part / edit / placeholder.js View on Github external
function TemplatePartPreview() {
	const [ blocks ] = useEntityBlockEditor( 'postType', 'wp_template_part' );
	return (
		<div>
			<div>
				{ __( 'Preview' ) }
			</div>
			
		</div>
	);
}

@wordpress/core-data

Access to and manipulation of core WordPress entities.

GPL-2.0-or-later
Latest version published 12 days ago

Package Health Score

95 / 100
Full package analysis