react-jsx Flashcards
1
Q
What is JSX?
A
A syntax extension to JavaScript that produces React “elements”
2
Q
Why must the React object be imported when authoring JSX in a module?
A
All JSX gets convert to React.createElement calls, so it needs access to the React object
3
Q
How can you make Webpack and Babel work together to convert JSX into valid JavaScript?
A
@babel/plugin-transform-react-jsx