简体   繁体   English

如何在 React Native 中安装 react-dom?

[英]How to install react-dom in React native?

in my react native app I want to install react-dom.在我的本机应用程序中,我想安装 react-dom。 when I tried to install with "npm i react-dom" then it's not installing.当我尝试使用“npm i react-dom”安装时,它没有安装。 So how can I install react-dom?那么如何安装 react-dom 呢?

You can't use react-dom in react-native apps.您不能在 react-native 应用程序中使用 react-dom。 'react-dom' is can only use in web applications. 'react-dom' 只能在 web 应用程序中使用。 I don't know why you want use 'react-dom' in react-native but if you want you can create web app with react and use it as webview in react-native I don't know why you want use 'react-dom' in react-native but if you want you can create web app with react and use it as webview in react-native

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM