使用react-router v2和浏览器历史记录时的<noscript>

时间:2016-04-07 00:39:48

标签: react-router

我尝试使用browserHistory来创建干净的URL,但是当我访问网页时,页面是空白的,在我的控制台中我得到了&lt;'noscript'>标记。我正在使用react-router v2。

&#xA;&#xA;
 从'react'导入React;&#xA;从'react-dom'导入ReactDOM,{render}; &#xA;从'./components/App'中导入应用程序;&#xA;导入来自'./components/InputForm'的输入窗口;&#xA;导入来自'./components/FilterSummary';&#xA;导入的FilterSummary来自'react-router'的{Router,Route,browserHistory,IndexRoute};&#xA;&#xA;&#xA; render((&#xA;&lt; Router history = {browserHistory}&gt;&#xA;&lt; ; Route path ='/'component = {App}&gt;&#xA;&lt; IndexRoute component = {InputForm} /&gt;&#xA;&lt; Route path ='/ filter'component = {FilterSummary} /&gt; &#xA;&lt; / Route&gt;&#xA;&lt; / Router&gt;&#xA;),document.getElementById('app'))&#xA;  
&#xA;& #xA;

服务器是WebLogic,所以我不知道如何配置它,因为该示例仅在Express JS中显示它。不知道怎么解决这个问题?

&#xA;&#xA;

编辑:

&#xA;&#xA;

添加HTML响应的屏幕截图

&#xA;&#xA;

不呈现所有JSX

&#xA;

0 个答案:

没有答案