我最近将React版本升级到了16版,从那以后,react-router-redux(我正在使用Redux)似乎无法工作。我的代码太大而无法粘贴。但是,它看起来非常类似于https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux。 这是我的代码如下所示: //Combine the Ep
我现在有打字稿问题,在react路由器中传递正确的类型。 打字稿错误: severity: 'Error'
message: 'Type '{ path: "/foo/:id"; component: typeof "<path>..' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route>