Usage Scope ReactJs - React is a JavaScript library for building Responsive User INTERFACES for Building Web Application. React Native - It is a framework for creating mobile applications with a native feel.
Syntax Both React and React Native uses JSX (JavaScript XML) syntax but React uses html tags like <div> <h1> <p> ETC while React Native uses <view> <text> etc.
Animation And Gestures React uses CSS animations on a major scale to achieve animations for a web page while The recommended WAY to animate a component is to use the Animated API provided by React-Native.
Routing Mechanism React uses a react-router for routing and does not have any inbuilt routing CAPABILITIES but React Native has a built-in Navigator library for navigating mobile applications.
REACT JS
REACT NATIVE
It is used for developing web applications.
It is used for developing mobile applications.
It uses React-router for navigating web pages.
It has a built-in navigator library for navigating mobile applications.
It uses HTML tags.
It does not use HTML tags.
It provides high security.
It provides low security in comparison to ReactJS.
In this, the virtual DOM renders the browser code.
In this, Native uses its API to render code for mobile applications.