JSX Flashcards
1
Q
What is JSX?
A
A special dialect of js (not HTML)
2
Q
Do browsers understand JSX code?
A
No! We use a tool to turn the code into js
3
Q
How do you style css code in jsx?
A
background-color becomes backgroundColor and “ “ becomes {{ }}
4
Q
How do you add a jsx class name?
A
className
5
Q
If you want to add javascript in jsx you have to put the js code in?
A
{ one set of curly braces }
6
Q
-g
A
install packages globally so we can run it from the terminal
7
Q
What is the code to install a node package?
A
npm install -g package-name