Skip to content

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

@jsonz1993

Description

@jsonz1993

大家如果用的时候发现说报 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上 主要是懒~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions