Why facebook created React JS?

Posted by kavyagaur on February 17th, 2021

React Native

React native architecture heavily relived on JS runtime environment architecture also known as JS Bridge. JavaScript code is compiled into native code at runtime. React native uses flux architecture from FB. In short react native uses JavaScript Bridge to communicate native modules.

1)      React native can write once and use repeatedly everywhere.

2)      React native allows cost efficient using tools such as Jest etc.

Difference-:

React native framework of JS and comes all essential need to set and development of application. React is just library of JS so when you use react you need many other another tools. React doesn’t support live reload feature whereas react native support live reload feature. Both react and react native use JSX for development of views and templates. When it come to styling of application using UI. In React you need to code by yourself but React Native is very easy to learn as everything is available in it. React native is much easier because you can make use of readymade components.

 

Difference between React and React Native?

React and React native both created by Facebook where react used for web development and React native used for mobile app development. React is a simple library which can use for every framework, moreover react can also be used under angular. React Native and Web Designing Training In Delhi is framework it use react properties in it. As you can check in any web application the React is present in it with the React native like you can open Package.json file to check the existence of react in React Native. So, due to this you can say the framework of React native is quite complex as compared to React. Current Version of React is 16.13.1 which is old as compared to React Native.  The Current Version of React native is 0.62.0. If we look at React Native applications then they are like instagram, Facebook Ads Manager, Bloomberg, AirBnB, Myntra, UberEats. Now look at Web Apps in React.js are Instagram, Netflix, Newyork Times, Facebook, Whatsapp. React Native allows building native applications. So using your native Frameworks that make able to write directly to device using JavaScript. 

React        

React is JavaScript library that used to build interface for web applications. Facebook implemented React.js in 2011. After implementation of React Facebook UI underwent drastic improvement. React is one of the most popular JavaScript libraries which have strong foundation and large communities. Survey of 2020 resulted that React is second most popular framework after ASP.net CO. React also talks the list of most wanted web frameworks. React is only front-end Library.

1)      JSX stands for JavaScript XML. Its XML syntax, it extends the ECMA script so that XML or HTML text can co-exist with JavaScript react code. Syntax can use by pre-processors to transform HTML text found in JavaScript files into standard JavaScript objects. JSX makes code easy to understand.

2)      Virtual DOM is tree that lists the elements and their attributes plus content as objects and properties. Virtual DOM works in three steps

A)     Whenever any underline data changes UI is re-render Virtual-DOM representation then difference between previous DOM representation and new one is calculated, once calculation is done the Real-DOM is updated the things which are actually changed.

3)      Testability- It is object that defines how component will render and behave plus you can easily manipulate the state of component.

4)      Server side rendering helps to re-render the initial state of your react components at server-side only.

5)      One-way data binding

Like it? Share it!


kavyagaur

About the Author

kavyagaur
Joined: February 8th, 2021
Articles Posted: 3

More by this author