Props and States
Discover what you can do with props and states.
As we’ve previously discussed, components have the same structure, but have different sets of data passed to them.
We’ll see the syntax and implementation of using states and props once we dive into React Native in the next section.
Props
Props are the properties that pass down values or information between the components.
Previously, we looked at how every entity in React Native is a component. There are parent components, which are wrappers for many smaller components. Props are used to pass data from these parent components to child components.
We can think of props as data that won’t ...
Get hands-on with 1400+ tech skills courses.