V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tikazyq
V2EX  ›  React

请教一个 routing 问题

  •  
  •   tikazyq ·
    tikazyq · 2016-07-26 13:09:00 +08:00 · 2049 次点击
    这是一个创建于 2836 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在学 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 条回复    2016-08-03 16:41:14 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   787 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.