React Native和React之间有什么区别? [英] What is the difference between React Native and React?

查看:229
本文介绍了React Native和React之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于好奇,我已经开始学习 React ,并想知道React和React Native之间的区别-尽管使用Google找不到满意的答案. React和React Native似乎具有相同的格式.它们的语法完全不同吗?

I have started to learn React out of curiosity and wanted to know the difference between React and React Native - though could not find a satisfactory answer using Google. React and React Native seems to have the same format. Do they have completely different syntax?

推荐答案

ReactJS 是一个JavaScript库,支持前端Web和在服务器上运行,以构建用户界面和Web应用程序.它遵循可重用组件的概念.

ReactJS is a JavaScript library, supporting both front-end web and being run on a server, for building user interfaces and web applications. It follows the concept of reusable components.

React Native 是一种移动框架,它利用主机上可用的JavaScript引擎,使您可以使用JavaScript为不同平台(iOS,Android和Windows Mobile)构建移动应用程序,从而允许您使用ReactJS来构建可重用组件并与本机组件进行通信

React Native is a mobile framework that makes use of the JavaScript engine available on the host, allowing you to build mobile applications for different platforms (iOS, Android, and Windows Mobile) in JavaScript that allows you to use ReactJS to build reusable components and communicate with native components further explanation

两者都遵循JavaScript的JSX语法扩展.可以编译为React.createElement调用. JSX深入

Both follow the JSX syntax extension of JavaScript. Which compiles to React.createElement calls under the hood. JSX in-depth

两者都是Facebook开源的.

Both are open-sourced by Facebook.

这篇关于React Native和React之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆