create-guten-block icon indicating copy to clipboard operation
create-guten-block copied to clipboard

Inline Comments: Update `p` to `div`

Open sr4136 opened this issue 6 years ago • 1 comments

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 }>

sr4136 avatar Nov 17 '19 14:11 sr4136

PR welcomed!

ahmadawais avatar Nov 18 '19 05:11 ahmadawais