React-Router - Histories

这个其实就是策略:

  • browserHistory
  • hashHistory
  • createMemoryHistory

browserHistory

这个就是path策略, 要server端处理请求的

hashHistory

这个hash策略.没啥说的.前端路由

createMemoryHistory

据说是给RN这种其他render环境用的

Customize your history further

https://github.com/mjackson/history
https://github.com/mjackson/history/blob/master/docs/QuerySupport.md
https://github.com/mjackson/history/blob/master/docs/BasenameSupport.md
https://github.com/mjackson/history/blob/master/docs/ConfirmingNavigation.md

这大哥有好多增强功能