You need to provide a key for the section
element in your edit()
function (which returns an array of elements):
edit() {
return([
<section key="my-key">
<div className="container">
<h2>Title here</h2>
</div>
</section>
])
},
Related Posts:
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- Are block templates incompatible with serialize_blocks?
- How to access noticeOperations from withNotices
- WP Gutenberg Blocks – How to limit first/root blocks
- How to get boolean value from register_meta properly?
- How to only load css for used blocks on frontend
- Invalid hook call on save, not edit when using swiper slider
- Proper way to use useSelect
- Pass custom props to
- Gutenberg text field validation
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- Remove Gutenberg Buttons Block
- ajaxurl not defined on front end
- How to include jQuery and JavaScript files correctly?
- How to post data to same page in wordpress
- Understanding WordPress functions’ naming conventions
- jQuery in header or footer
- Adding pre-publish checks with Gutenberg
- How to make repeated component/block in Gutenberg
- Using Primary Color in Plugin Block
- Show a user their recently viewed posts
- Escaping built-in WP function return strings
- Add new user and add meta at once
- How to Display Custom Post Type’s Gallery (images ) in Through WP_Query
- What’s the Right Way to get and save remote data for a Gutenberg block?
- What’s the better way to add an inline script?
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Backslashes being stripped from CSS
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Make a list with header and subtext in Gutenberg blocks
- How to determine if the current file is loaded in a plugin or in a theme?
- Filter, or any way to dynamically change theme screenshot image?
- Finding the paragraphs in content
- How to avoid loading same script twice?
- Can I individually style items in the backend widget list?
- WP_Query returns no results
- Finding posts containing matching array elements in a meta field usign WP_Query
- Should action callbacks start with a verb?
- How insert negative values in Gutenberg box-control
- How to Create Custom HTML Tag on Editor in `Text(HTML)` mode
- Is It Always a Best Practice to Decouple the Frontend from the Admin Area When Developing a WordPress Application?
- How to render a time-of-day string like ’16:42′ with a site’s chosen time format?
- ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
- How to filter users list on user_status field with get_users()
- WordPress Block Development – trouble importing from @wordpress/icons
- Can Page Templates be Applied to Archive and Post Templates?
- Is there some way to provide the user a list of existing content in a CPT
- Change the look and feel of admin pages
- How to insert text at the current cursor position in Gutenberg?
- JSX in WordPress Plugin Development
- Form doesnt save to database
- Notice: Trying to get property ‘term_id’ of non-object
- What is the proper method of using global $post?
- There is a problem in the gutenberg block I developed. Problem is with withInstanceId
- How to change title tag at page after loaded post?
- WordPress custom taxonomy check box to dropdown
- Selectively update themes in WordPress multisite
- Getting a WordPress Debug Strategy
- Use npm and wp-env to make production bundle
- Conditional Generation of Image Sizes using add_image_size
- Setting global block attribute value
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Create fixed static pages
- rewrite_rules problem
- Why does website stretch and white space on load? [duplicate]
- Custom Block Not Shown in Block Inserter
- Why my theme’s css not working on another site
- var(–text-color) in style.scss works once but not twitch
- How to make premium plugin? I want to limit it until verification
- Google Web Core Vitals – management, how to in wordpress and advice
- How to add quick edit on the list of users to edit custom fields?
- Impossible to declare box-shadow with wp.customize?
- What happens/fires when you select a block in the editor?
- Override category archive page title (not the head title)
- Get value of custom checkbox from Gutenberg sidebar in plugin
- 400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true
- Rate limiting ajax requests in WordPress
- How to hide/remvoe unnecessary field/section in post edit section ( Dashboard )
- Scripts/styles not loading on cloned WP Site when logged in
- Is it possible to modify an Elated plugin portfolio-list template in such a way that it will not conflict with future plugin updates?
- Woocommerce Custom Checkout
- Dynamic sidebar areas not working on the Theme Customizer
- Merge Codes using redux framework
- Issue on Getting Images URL of the Post Gallery
- Best practice: What belongs in theme and what in plugin for large eCommerce website
- variable created in page.php is null inside of header.php
- Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent
- Updating Style From WP Options Setting Page
- Create and style menu
- append code after the_content not working
- Problem with Poedit [closed]
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Custom plugin not appearing
- Gutenberg’s Popover component position relative to the focused element
- Render raw html in Gutenberg block
- Build a dynamic block using the default attributes
- How to create A – Z List with pictures?
- How to replace content of a block in and re-render on change?
- extending a core block doesn’t work inside the editor