Is react.js the same as Native react? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is react.js the same as Native react?

If not,what are the advantages of one over the other

1st Aug 2020, 12:35 AM
Cy63rX
Cy63rX - avatar
3 Answers
+ 5
They are two different things. At latest version of ReactNative, RN can do what React can do ; but React can't do what RN can do. https://code.sololearn.com/WKKkpq0efxai/?ref=app
1st Aug 2020, 2:05 AM
Gordon
Gordon - avatar
+ 3
React JS is a whole library, you can build web apps using it, react native, as far as i know, is used in mobile app development.
1st Aug 2020, 2:03 AM
maf
maf - avatar
+ 3
As maf already mentioned.. react Native is a library used in mobile app development.. It has it's own JSX components which replicates native properties.. such as Text, View, TextInput and much more.. React Native can use native components and api of the android / iOS platform.. such as Camera, Video, Maps, Accelerometer, etc... React Native also has a package known as react-native-web, which maps the react native components to react js web components.. such as View to Div, TextInput to Input , Image to img and more.... So that you can use single code for both web and app
1st Aug 2020, 2:11 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar