react-jsx Flashcards
1
Q
What is JSX?
A
JSX is a JavaScript Extension Syntax used in React to easily write HTML and JavaScript together.
HTML like markup language, describe the UI…
2
Q
Why must the React object be imported when authoring JSX in a module?
A
because JSX is converted using the React.createElement function call.
Babel does the conversion.
3
Q
How can you make Webpack and Babel work together to convert JSX into valid JavaScript?
A
using the babel plugin transform-react-jsx