tikazyq
V2EX  ›  React

请教一个 routing 问题

  •  
  •   tikazyq ·
    tikazyq · Jul 26, 2016 · 2615 views
    This topic created in 3610 days ago, the information mentioned may be changed or developed.

    最近在学 React , follow 了一下这个 example: https://github.com/reactjs/redux/tree/master/examples/real-world 。但是有个问题:当跑起来之后,打开 localhost:3000 ,输入 git username ,然后点“ Go ”,发现 URL 变成 http://localhost:3000/username 。我翻遍源码也没找到触发 routing 的逻辑。。。

    请大大们指点一下~~

    1 replies    2016-08-03 16:41:14 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:08 · PVG 16:08 · LAX 01:08 · JFK 04:08
    ♥ Do have faith in what you're doing.