So we've seen that we can compose React Native components as well as create our own components and pass data from one to another. In React, there are two important component types, so let's understand what they are and how they are different, but first let's understand the terminology:
- Stateful: When something is stateful, it is a central point that stores information in memory about the app or component's state. It also has the ability to change it.
- Stateless: When something is stateless, it calculates its internal state but it never directly mutates it. This allows for complete referential transparency, meaning that given the same inputs, it will always produce the same output.
I've mentioned in chapter 1, Understanding why React Native is the future of mobile apps, how information is flown through the React...