作者rr8r8r8r8tw (amp)
看板Ajax
標題[問題] React router問題
時間Tue Sep 19 11:49:55 2017
想請問一下,因剛接觸React
需要部署到tomcat上,但在刷新首頁以外的頁面會error 404,
研究說需要react router用BrowserHistory。想請問這篇網址的討論,提到deploy.js和
routes.js是和寫好的root.js(Route path的那些code)放在同一資料夾嗎?
還有他提到的把生成的index.html放在這幾個路徑是指哪個路徑?
https://github.com/LoeiFy/Recordum/issues/15
先感謝回覆
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.135.202.221
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Ajax/M.1505792999.A.EE5.html
1F:→ UtahC: server side rendering 09/19 15:26
2F:→ rr8r8r8r8tw: 所以說純client side不能達成嗎? 09/19 21:42
3F:→ MangoTW: Web server config 09/20 04:30
4F:→ rr8r8r8r8tw: 感謝,目前用404頁面解決 09/20 10:54