react native class component example
Example 1: react native class component
class Cat extends Component {
render() {
return <Text>Hello, I am your cat!</Text>;
}
}
Example 2: how to create component in reactjs
class Car extends React.Component {
render() {
return <h2>Hi, I am a Car!</h2>;
}
}