react-props-and-expressions Flashcards
1
Q
What are props in React?
A
they are arbitrary inputs for components
2
Q
How do you pass props to a component?
A
component name then the key and value
3
Q
How do you write JavaScript expressions in JSX?
A
inside of curly braces