props-and-expressions Flashcards

1
Q

What are props in React?

A

HTML attributes, but you can pass any JavaScript value through them

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

How do you use props in a component?

A

first you need to pass props in as a arguemnt

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

How do you pass props to a component

A

{{}}

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

How do you write JavaScript expressions in JSX?

A

<nameOfComponent>
</nameOfComponent>

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