JSX Flashcards
1
Q
What is JSX?
A
a syntax extension to JavaScript
JSX produces React “elements”. Lets you put XML into the JavaScript code.
2
Q
Why must the React object be imported when authoring JSX in a module?
A
This only applies for older version of React
3
Q
How can you make Webpack and Babel work together to convert JSX into valid JavaScript?
A
@babel/plugin-transform-react-jsx
in devDependencies