Skip to main content

Difference between React JS and React Native


Difference between React JS and React Native 


  


Before coming to our main topic first, we have a basic command of the similarities between React JS & React Native.

So both are the framework of Java Script, and they are used for UI (User Interface) designing and sharing the same coding syntax. But before starting your coding journey you need to know the fundamentals of HTML, CSS, and of course Java script.

 If we talk about the difference between them, so it is mostly used for website development and web-Application creation, while the other hand, React Native is used for building applications for cross-platform such as IOS and Andriod-based devices. 

If you want depth info, read the down below article.

What is React JS and why it's famous?

As discussed that React JS is a JavaScript framework and Libray also, It is used to create the Web-Applications and UI design. For design & development, the coder must command HTML, CSS, and JavaScript.

React JS is famous for building one-page Web-Application. It means you don't need to create multiple web pages, you just need to create components and  Import them in your Render folder.  

I know it looks too tough while reading but when you explore the example and try it with yourself it will be pretty much easy.

Example Code:

Component.js:

Import react from 'React'  

<div id="id01">Hello World!</div>

export default component;


App.js:

Import react from 'React'  

Import Component from 'component'  

<script type="text/babel">

ReactDOM.render(

  

  document.getElementById('id01'));

</script>       


Result:

Hello World!

What is React Native and why it's famous?

React Native is a framework of Javascript that is used to create Applications for cross-platforms such as IOS and Andriod. It has pretty much the same syntax as React JS and, Yes HTML, CSS, Javascript, and also OOP's(Object Oriented Programming) concepts are plus points while learning React Native.

 If we talk about its major work of it, so it will use to build APIs and components which are technically the same as React JS.   

Example Code:

 import React, {Component} from 'react';  

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

  

type Props = {};  

export default class App extends Component<Props> {  

  render() {  

    return (  

      <View>  

        <Text>Hello World</Text>  

      </View>  

    );  

  }  

}  

Result:

Hello World!

Note:

This output will show in the interface of a cell phone program.

Conclusion:

In the above article, we learn about the difference between React JS & React Native, and we also talk about these topics and its example in depth.

Thank you for reading my article, hope our information will be beneficial for you.

Comments

Popular posts from this blog

How to select an appealing Rug for the living room: some common leads

  How to select an appealing Rug for the living room: some common leads Every household person who has a wish to decorate their dream house according to their preferences tries their best to make it as beautiful as they dream it.  While decorating, there is a community of people who focus on their living room because it is the leading room which represents the status of the whole house and its holders.   So it is obvious that every single showpiece and furniture represents the feels of the living room, here an appealing Rug adds some value to the living room. But lots of people are not mentally satisfied by choosing a Rug because this specific product comes in varieties of sizes, materials, designs, and colors. Today we are going to gain some basic leads to choose a Rug according to our room interior design.   If you already know about Rugs and are searching for a trusted site to buy, you can visit our online store RugKnots.com where you will find incredible designs...

Uniswap Revolution of Cryptocurrency; Trading with Decentralised Exchanges:

  Uniswap Revolution of Cryptocurrency; Trading with Decentralised Exchanges: A cryptocurrency exchange is an online platform where users can buy, sell, or exchange cryptocurrencies. These exchanges enable transaction connections between buyers and sellers directly and could provide numerous features and tools to help in trade. Uniswap Intro: A recognized platform that provides exchange deals, or top cryptocurrencies to trade, is used by Uniswap , a decentralized cryptocurrency exchange, to execute trades. This open-source project falls within the DeFi (Decentralised Finance) product category since it makes use of contract technology to support trading. A decentralized exchange contains an unassailable security framework but it kind a complex UI(User Interface). According to a Web channel : Uniswap is a leading decentralised crypto exchange that runs on the Ethereum blockchain . This means you can buy any cryptocurrency with Ethereum currency. What is the mechanism of blockchain? B...

What Is LARAVEL|What Is Laravel, and how do you get started with it| What is XAMPP?|What is the Composer?

  What Is LARAVEL, and how do you get started with it Description: In today's tutorial, we'll learn what Laravel is, how to get started with it, and some installation and file creation commands. For a better understanding, we will discuss Laravel in detail and discuss the software that makes Laravel run smoothly. But for now, our primary focus is on what LARAVEL is and how you get started with it. Let's start our journey: What Is Laravel, and how do you get started with it: Laravel  is an open-source framework for  PHP  language. It is a framework that is easy to understand and user-friendly framework. Moreover, the project's development follows a modern view controller design pattern.   Laravel recycles existing components from other frameworks, which helps develop a web application. To start your development journey with  Laravel , you need to follow these steps: First, install  XAMPP  in your operating system Instal...