react-filepond icon indicating copy to clipboard operation
react-filepond copied to clipboard

Remove extraneous { } from README code

Open lukestuts opened this issue 3 years ago • 2 comments

The example code throws an "expected ..." error when the curly brackets on this line are included.

lukestuts avatar May 02 '21 23:05 lukestuts

I can see lots online about needing curly brackets around comments in react, eg. {/* comment */}, but this is not compiling in my next.js app. I think it is because the comment is inside a tag. Happy to be wrong!

lukestuts avatar May 02 '21 23:05 lukestuts

Thanks @lukestuts, I honestly don't know and currently have time to test this.

rikschennink avatar May 03 '21 14:05 rikschennink

+1 for the PR. The curly braces comment syntax { } doesn't work when writing comments within a tag. Example:

<div>
<SomeComponent
foo="bar" /* Here the comment shouldn't have {} */
/ >
{/* Here it does need {} */}
</div>

omar-shahid avatar Oct 10 '22 07:10 omar-shahid