The final effect I want is this
When I wrote it, it was compiled into react-text. What is this? Logically speaking, shouldn't it be displayed as <!-- hfkdshk -->?
jsx is syntax sugar for js, that is, jsx is also js. So the comment syntax of jsx is not <!-- -->Same question /q/10...
<!-- -->
This is JSX.
Don’t write comments inside.
{/* jsx */} 单行注释 {/* 多行注释 */}
jsx is syntax sugar for js, that is, jsx is also js.
So the comment syntax of jsx is not
<!-- -->
Same question /q/10...
This is JSX.
Don’t write comments inside.