react-props-and-expressions Flashcards
1
Q
What are props in React?
A
They are objects; Props stand for properties; used to pass data between React components
2
Q
How do you pass props to a component?
A
As an argument
3
Q
How do you write JavaScript expressions in JSX?
A
Put them in brackets