Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ie9/10 下面 this.setState 函数不存在 #5

Open
YuhangGe opened this issue Feb 23, 2016 · 0 comments
Open

ie9/10 下面 this.setState 函数不存在 #5

YuhangGe opened this issue Feb 23, 2016 · 0 comments

Comments

@YuhangGe
Copy link

使用 React.createClass 的方式创建的组件,内部使用 this.setState 调用时,找不到 setState 函数。大概原因是 hmr 依赖的库需要 proto 特性支持,但 ie9 下面没有 proto。去掉 hmr 插件后问题解决。

gaearon/react-proxy#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant