作为一个React小白,今天我尝试照着官网页面上的小例子做一些练习。在练习过程中遇到了这么一个问题,错误见下图。
Error: Target container is not a DOM element.
之所以会报这个错误是因为,我在index.js文件中将“elementId”自定义了。
Error: Target container is not a DOM element.
解决方法:
如果想要自定义elementId,需要同时修改index.html 文件中主dom节点的id。
Error: Target container is not a DOM element.

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-04-06
  • 2021-07-19
相关资源
相似解决方案