Files
stack/docs/web/hello_react/difference.md
T
2022-09-24 17:54:59 +08:00

14 lines
255 B
Markdown

---
sidebar_position: 3
---
# 相似与不同
React 的 App.js 和之前 hello_world 中的 index.html 有很大的不同
![不同](./difference.png)
这是因为 React 会把 App.js 作为组件挂载到页面视图上
![挂载](./what_happend.png)