create-guten-block
create-guten-block copied to clipboard
Inline Comments: Update `p` to `div`
Bug Report
In a few places, the inline comments & output are mismatched (example, others ):
// Creates a <p class='wp-block-cgb-block-<% blockName %>'></p>.
return (
<div className={ props.className }>
The mismatched comments and result may confuse new users.
Possible Solution
It should read:
// Creates a <div class='wp-block-cgb-block-<% blockName %>'></div>.
return (
<div className={ props.className }>
PR welcomed!