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!









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