What is the correct syntax to write expression in JSX?

6. What is the correct syntax to write expression in JSX?

  1. [ expression ]
  2. { expression }
  3. {{ expression }}
  4. _expression

Answer: B) { expression }

Explanation:

With JSX, an expression can be written using the syntax, { expression }.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.