react-props-and-expressions Flashcards
1
Q
What are props in React?
A
A set of data passed between components in JSX
2
Q
How do you use props in a component?
A
You use them
3
Q
How do you pass props to a component
A
You can declare the prop in jsx with {} or “”; (any JS expression);
4
Q
How do you write JavaScript expressions in JSX?
A
Within {};