Added curly brackets to comment in JSX element (#34694)
Added curly brackets to comment in JSX element to hide it from the rendered DOM
This commit is contained in:
committed by
Manish Giri
parent
f366b32d92
commit
a17b123510
@ -62,7 +62,7 @@ class Navbar extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>Hello, my name is: /* your code here */ </h1>
|
<h1>Hello, my name is: {/* your code here */} </h1>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user