假设我在渲染之前在index.js文件中用reactjs编写了一个测试函数console.log("this is test function writtenin reactjs")我想在html脚本中调用上面的reactjs函数。<html>
//including reactjs minified js in the in
我正在用Reactjs编写一个应用程序,使用Reactjs链接,而不是'npx创建-Reactjs‘。我已经创建了一个index.html、index.js和App.js文件。我想使用App.js导入Index.js文件中的import App from '../components/App.js'组件,但是它在浏览器(客户端)上出现了“不能使用模块