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> ); } } 
1

2 Answers 2

7

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

Sign up to request clarification or add additional context in comments.

Comments

4

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.