react-jsx Flashcards

1
Q

What is JSX?

A

it provides the syntactic sugar for React.createElement(component,props,children) function

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

Since JSX compiles into calls to React.createElement, the React library must also always be in scope from your JSX code.

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 with Webpack installed

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