React Flashcards

1
Q

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

A

JSX compiles React code so the React code must be in scope

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

What is JSX?

A

JSX makes it easier to call React.createElement by compiling React code to make it look like HTML

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

You need to install the JSX plugin as a dependency

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