3

(Sorry if too obvious and/or dup, couldn't find original one...)

How should I be able to comment out TodoTitle below? I tried with <!--...-->, //, /*...*/ with no luck.

class TodoApp extends React.Component {
  render() {
    return (
      <div className="todo-app">
        <TodoTitle />
      </div>
    );
  }
}
Ariel
  • 5,752
  • 5
  • 49
  • 59
  • Possible duplicate of [ReactJS - how to use comments](https://stackoverflow.com/questions/30766441/reactjs-how-to-use-comments) – yue you Feb 04 '18 at 14:25

2 Answers2

7

You can comment {/* comment */} in JSX.

4

Can you not just use {/* stuff */} ?

kcuhcx2
  • 343
  • 1
  • 4
  • 15