React 'Cannot GET /'
React 'Cannot GET /'
我正在显示我的应用程序使用:
React.render(
<App />,
document.getElementById('content')
);
服务器显示在端口3000
但是,当我访问 时http://localhost:3000/
浏览器显示
Cannot GET /
React.render()生成一个字符串用于显示,但不将其绑定到任何路由。在担心React之前,你需要解决应用程序的这一部分。我建议使用基本的express生成器模板,然后开始添加react。
相关文章:
- 有没有一种方法可以防止img get请求使用css或js发生
- CORS-重定向到第二个GET正在接收的页面
- jQuery Ajax GET请求工作不正常
- 如何将PHP get查询转换为Meteor's HTTP.get()
- 返回/从Twit's客户端.get
- AngularJS错误:提供程序必须从$get工厂方法返回值
- 如何在router.get()方法中传递url作为参数
- 使用Javascript/JQuery获取JSON GET数据
- 如何使用php文件中的GET来获取我在.js文件中声明的变量
- Get方法获取csv文件的内容
- 快速服务器在试图访问index.html时返回Cannot Get
- Vue 2和Vue- resource [Cannot read property 'get'未定义的(
- express js cannot GET /page
- React 'Cannot GET /'
- Brunch + Heroku build `Cannot GET /`
- 对存储的响应出错.get: TypeError: Cannot read property 'style'
- $http TypeError: Cannot read property 'get'未定义的——在工厂
- 未捕获的TypeError: Cannot read property 'get'的定义
- Angular2 - Cannot GET /
- get "Cannot set property 'src'null"但是这个元素是