react-props-and-expressions Flashcards

1
Q

What are props in React?

A

they are objects that hold properties of declared key/value pairs (where the key is the property)

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

How do you pass props to a component?

A

ComponentName key=”value” /

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

How do you write JavaScript expressions in JSX?

A

surrounding the expressions in curly braces

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