Q: JSX is faster because it performs ____________ while compiling code to JavaScript.
-
A
Encryption
-
B
Optimization
-
C
Modification
-
D
Compression
B
Answer:
B
Explanation:
Optimization
React with JSX
Why JSX?
React uses JSX instead of the regular JavaScript.
Advantages:
- Faster because it performs optimization while compiling code to JavaScript.
- Type-safe and most of the errors can be caught during compilation.
- Easier and faster to write templates, if you are familiar with HTML.
Related Topic:
Share Above MCQ