react-props-and-expressions Flashcards
1
Q
What are props in React?
A
object that is used to pass data between react
2
Q
How do you pass props to a component?
A
state the component name and key and value. (props.name).
3
Q
How do you write JavaScript expressions in JSX?
A
inside curly braces.