React-Components Flashcards
1
Q
What is a React component?
A
A react component is a javascript function that can be used to create parts of the UI and provide logic and styling to the component
2
Q
How do you define a component in React?
A
When you define a React component, it’s name must be capitalized unlike regular javascript functions
3
Q
How is a component “rendered” (made visible on the browser page)?
A
by using the render() method