Questions tagged «react-dom»

7
React vs ReactDOM?
我有点新反应。我看到我们必须导入两件事才能开始,React并且ReactDOM,谁能解释其中的区别。我正在阅读React文档,但没有说。
196 reactjs  react-dom 


2
registerServiceWorker在React JS中做什么?
我是React的新手,我想知道以下代码中的registerServiceWorker()的目的是什么? import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.