Babel Flashcards

1
Q

What is Babel?

A

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ into a backwards compatible version of JS in older and current browsers or environments

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

What is a plugin?

A

it adds a specific feature to an existing computer program

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

What is a Webpack loader?

A

transformations that are applied to the source code of a module that allow you to “translate” them

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

How can you make Babel and Webpack work together?

A

you have to install them

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

What is JSX?

A

Syntactical sugar for react

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

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

A

JSX is not really JS but Syntactical sugar for react

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

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

A

install the babel plugin for transform react JSX

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