2
votes
How can I show a Slot/Fill in the block editor
By wrapping everything in a <SlotFillProvider> and rendering MyTestFill it works, here is the code:
const { Fill, Slot } = createSlotFill( 'MyFill' );
const TestFill = () => <Fill>My ...
- 131
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 2587jquery × 535
php × 504
ajax × 301
plugins × 290
wp-enqueue-script × 222
block-editor × 199
plugin-development × 196
css × 178
functions × 148
html × 125
theme-development × 101
customization × 74
theme-customizer × 69
woocommerce-offtopic × 68
themes × 58
rest-api × 58
wp-admin × 54
shortcode × 53
posts × 52
tinymce × 51
scripts × 47
uploads × 46
hooks × 45
forms × 45