React JSX Flashcards
1
Q
What is JSX?
A
JSX is a syntax extension to JavaScript and is recommended to be used with React to describe what the UI should look like.
2
Q
Why must the React object be imported when authoring JSX in a module?
A
JSX is essentially shorthand for React syntax and requires the React object.
3
Q
How can you make Webpack and Babel work together to convert JSX into valid JavaScript?
A
Install the Babel loader for Webpack and then the Babel JSX plug-in.