react-jsx Flashcards

1
Q

What is JSX?

A

a syntax extension to javascript. aka , adds additional syntax to javascript that is eventually compiled to js code. nothing actually runs in jsx. it just helps to get a visual idea of what your dom looks like when building in react

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

because JSX must compile into React methods likes createElement(type,props,children). which is then converted to js

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

by telling babel-loader to use babel-transform.

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

details about plug-ins and webpacks

A

webpack isnt useful without a loader and a loader isn’t useful without a plugin

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