react-jsx Flashcards

1
Q

What is JSX?

A

JSX is a syntax extension to JavaScript. It is recommended to use with React to describe what the UI should look like.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why must the React object be imported when authoring JSX in a module?

A

Just syntactic sugar for react.createElement()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you make Webpack and Babel work together to convert JSX into valid JavaScript?

A

Use babel-loader and install @babel/plugin-transform-react-jsx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly