Skip to main content
InterviewHubPRO
Section Overview
Q223

Question 223 of 407

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

55%
React Core & Hooks (407 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

Do browsers understand JSX code?

mid LevelCode ExampleFormsPerformance

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.