136k views
0 votes
2.1.2 Quiz: Introduction to Components
What is a component in React Native?

1 Answer

2 votes

Answer:

In React Native, a component is a reusable building block for creating user interfaces. It is a JavaScript class or function that can accept input (props) and returns a React element that describes how the component should appear on the screen. Components can be combined and nested to create complex UIs, and they can also have their own internal state and lifecycle methods.

Step-by-step explanation:

User Simon Hessner
by
7.3k points