仅在专用浏览器中进行更新

hmtdttj4  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(178)

您好,我是新的编码,并开始学习React,我有一个问题,当我改变在h1标签的网页只更新在私人浏览器的html。是否有任何原因导致这一点或我所犯的任何错误。提前谢谢。

  1. import React, { Component } from "react";
  2. import { render } from "react-dom";
  3. export default class App extends Component {
  4. constructor(props) {
  5. super(props);
  6. }
  7. render() {
  8. return <h1>Why does this </h1>;
  9. }
  10. }
  11. const appDiv = document.getElementById("app");
  12. render(<App />, appDiv);

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题