React-Components Flashcards
1
Q
What is a React component?
A
A component is a javascript function that allows you to build UI’s by allowing you to build markup, apply CSS styling and JS logic all in one.
2
Q
How do you define a component in React?
A
By creating a javascript function where the first letter of the function name has to be capitalized
3
Q
How do you mount a component to the DOM (or “render” a component)?
A