【发布时间】:2018-11-22 15:01:03
【问题描述】:
我可以使用什么类型的 history.push 使用 Flow 进行输入的 react 路由器?
type State = {
...
history: string,
}
登录成功后我使用react路由路由到路由
history.push("/user");
但是出现如下错误,在flow中没有找到类型
Cannot call `history.push` because property `push` is missing in `String` [1]. (References: [1])
【问题讨论】: