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

Cannot read property 'update' of undefined 问题解决 #12

Open
jsonz1993 opened this issue Jun 3, 2017 · 0 comments
Open

Cannot read property 'update' of undefined 问题解决 #12

jsonz1993 opened this issue Jun 3, 2017 · 0 comments

Comments

@jsonz1993
Copy link

大家如果用的时候发现说报 Cannot read property 'update' of undefined

是因为 react.addons.update 这个接口已经被独立出 react了。facebook/react#2909

解决的办法可以自行Google react.addons.update 寻找替换的npm 然后在代码里 重置该变量即可。

如果大家想偷个懒, 可以到jsonz.github。 自己根据shigebeyond 的代码造了一个小轮子。 改用es6语法 && 兼容新版本的 React && RN。 不过没有传到npm上 主要是懒~

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