NA +91-8727899942 thecoderjob@gmail.com

CHAPTER - 7

What is component in react native.

In this example, HelloWorld is a functional component that renders a View containing a Text component displaying "Hello, World!".


 

In React Native, a component is a reusable piece of the user interface that can be composed together to build complex UIs.

There are two main types of components in React Native

 - Functional Components

 - Class Components

Here's is the Code !!

import React from 'react';
import { View, Text } from 'react-native';

const HelloWorld = () => {
  return (
    <View>
      <Text>Hello, World!</Text>
    </View>
  );
};

export default HelloWorld;

Chapter 6

What is JSX in react native

Previous chapter

Chapter 8

Button and onPress event in react native.

Next chapter

Get In Touch

NA

thecoderjob@gmail.com

+91-8727899942

Popular Links

© www.thecoderjob.com. All Rights Reserved.               Designed by HTML Codex