JSX Flashcards

1
Q

What is JSX?

A

A special dialect of js (not HTML)

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

Do browsers understand JSX code?

A

No! We use a tool to turn the code into js

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

How do you style css code in jsx?

A

background-color becomes backgroundColor and “ “ becomes {{ }}

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

How do you add a jsx class name?

A

className

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

If you want to add javascript in jsx you have to put the js code in?

A

{ one set of curly braces }

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

-g

A

install packages globally so we can run it from the terminal

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

What is the code to install a node package?

A

npm install -g package-name

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