React
- components component
- JSX
- props attribute
- state state
A simple function can be used as a component
const Cat = () => {
};
<> and </> A pair of JSX tags called Fragments (fragments)
The syntax of JSX requires that the root element must be a single element
custom components
React
Allows you to create new components by nesting these components. These nestable and reusable components are the essence of React
the concept .
<View>
and <Text>
can be thought of as Html
developing <div>
and <p>
tags.