What Are Components?

Discover why components are fundamental to React Native.

Components are the fundamental building blocks of a React or React Native application. They provide code reusability.

Example

Doing a Google image search gives us an example of what components are and how they can be used. Every image card on the page in the picture below is the same. The structure of the card is the image on top, the title, and the subtitle below them. The only thing that changes is the actual data. That is what components are. The basic structure remains the same, but the data can be changed and the structure can be reused.

Get hands-on with 1400+ tech skills courses.