InterviewHubPRO
Section Overview
Q223

Question 223 of 445

Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

50%
React & Modern Frontend (445 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

Do browsers understand JSX code?

No, browsers can't understand JSX code. You need a transpiler to convert your JSX to regular Javascript that browsers can understand. The most widely used transpiler right now is Babel.

Practical Code Example

text
// Do browsers understand JSX?
// NO. Browsers only understand standard ECMAScript.
// JSX is transpiled by Babel / SWC into 'React.createElement()' or '_jsx()' function calls.