What is the difference between React and React Native

Follow by Email
Facebook0
Facebook
Google+
https://codingsec.net/2017/03/difference-react-react-native/

At Facebook, they invented React so JavaScript can manipulation website DOM faster using the virtual DOM models.

Here is the React project ( https://github.com/facebook/react ).

DOM full refresh is slower comparing to React virtual-dom models that refreshes only the part of the page (read: partial refresh).

Facebook they invented React not because they understood immediately the partial refreshs will be faster than the conventional ones. Originally they needed a way to reduce Facebook application re-build time and luckily this brought the partials DOM refreshs to life.

The React native ( https://github.com/facebook/react-native ) is just a consequence of React. It is a platform to build native app using JavaScript.

Prior to React native you needed to know Java for Android or Objective-C for iPhone and iPad to create native app.

With React Native it is possible to mimic the behavior of the native apps in JavaScript and at the ends, you will get platform specific code as the outputs. You may even mix the native code with the JavaScript if you need to optimize your applications further.

As Olivia Bishop said in the video, 85% of the React native code base can be shared among platform. These would be the components application typically use and the common logic.

15% of the codes is platform specific. The platform-specific JavaScript is what gives the platform flavors ( and makes the difference in the experience ).

The cool thing is this platform specific codes — is already written, so you just need to use them.

1) React-Native is a frameworks for developing android & ios applications which shares 80-90 % of javascript codes.

While React.js is a parent Javascript library for developing web application.

2) While you use tag like , very frequently in React-Native, React.js uses web html tags like , which are only synonyms in dictationary of web/mobile developement.

3) For React.js you need DOM for path rendering of html tags, while for mobile applications: React-Native uses AppRegistry to register your app.

 

Take your time to comment on this article.

Follow by Email
Facebook0
Facebook
Google+
https://codingsec.net/2017/03/difference-react-react-native/

Add a Comment

Your email address will not be published. Required fields are marked *

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger