我正在使用 react-router 插件来设置我的路线我想提供两条路线list/和list/:id(很常见)我所拥有的和正在工作的是:
<Routes>
    <Route handler={App}>
        <Route name="list"
            handler={ListComponent}
            collection={new Collection()}>
        </Route>
    </Route>
</Routes>
但我正在努力让我的“细节”路线发挥作用。我试过的是:
<Routes>
    <Route handler={App}>
        <Route name="list"
            handler={ListComponent}
            collection={new Collection()}>
            <Route name="list.details"
                path="list/:id"
                handler={DetailsComponent}>
        </Route>
    </Route>
</Routes>
首先,这目前不起作用,我DetailsComponent在访问 list/123 时没有呈现(例如)
其次,即使这行得通:我将如何管理将我收藏中的一个模型“向下”传递给DetailsComponent?