why can’t browsers read jsx?



why can’t browsers read jsx?..

Answer / Pallavi Awasthi

Browsers cannot read JSX directly because it is a syntax extension for JavaScript. When you write JSX, it gets transpiled (transformed) into plain JavaScript by Babel (or other similar tools) during the build process.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

Which is best react or angular?

1 Answers  


Explain the term reconciliation?

1 Answers  


Why is a component constructor called only once?

1 Answers  


What are portals in react?

1 Answers  


Explain the term synthetic events?

1 Answers  


Define the term Redux in React

1 Answers  


What is the difference between npm & npx?

1 Answers  


What are state and props in reactjs? What is the difference between the two?

1 Answers  


What are stateless components in reactjs?

1 Answers  


How react router is different from history library?

1 Answers  


What are class based component?

1 Answers  


What is the virtual dom, and a pragmatic overview of how react renders it to the dom in react.js?

1 Answers  


Categories