Home »
MCQs »
ReactJS MCQs
What is the correct syntax to write expression in JSX?
6. What is the correct syntax to write expression in JSX?
- [ expression ]
- { expression }
- {{ expression }}
- _expression
Answer: B) { expression }
Explanation:
With JSX, an expression can be written using the syntax, { expression }.