REACT JSX Flashcards

1
Q

What is JSX?

A

JSX is a React extension to the JavaScript language syntax which provides a way to structure component rendering using syntax familiar to many developers, provide syntactical sugar for React.createElement
JS syntax extension

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

JSX is an extenstion of React, it is required for JSX to be legible

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

add to devDependencies and include direct dependices react
program babel to to do something
babel loader will convert

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