V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
coraline

不依赖服务端实现 react-router 的 browserHistory 模式

  •  
  •   coraline · Feb 28, 2017 · 4827 views
    This topic created in 3346 days ago, the information mentioned may be changed or developed.

    react-router 的 browserHistory 是推荐使用的模式,不过这个需要服务端做一下处理。但是有时候并不能配置服务器情况,例如部署到 GitHub pages 上,这时候还有另一种处理方法,实现 browserHistory 模式

    详细说明这里 http://mirror.am0200.com/#15

    1 replies    2017-03-01 09:19:53 +08:00
    ThinkCat
        1
    ThinkCat  
       Mar 1, 2017
    总之还是需要一个代替服务端的东西,相比之下,确实是 hashHistory 最简单方便
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 08:30 · PVG 16:30 · LAX 01:30 · JFK 04:30
    ♥ Do have faith in what you're doing.