-
Notifications
You must be signed in to change notification settings - Fork 320
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
9.2 #4
Comments
ReactDOM.render应该返回 根组件的实例 |
updateComponent方法中的this.forceUpdate应该改成instance.forceUpdate |
原patchRef方法理解有误,函数形式的传参是DOM 不是组件实例 function patchRef(instance, ref, dom, mount) {
if (typeof ref === 'function') {
ref(dom)
} else if (typeof ref === 'string') {
instance.refs[ref] = dom
dom.getDOMNode = getDOMNode
}
} |
BetaSu
pushed a commit
to BetaSu/anu
that referenced
this issue
Nov 2, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
diffProps 方法不能修改props属性,因为它可能已经冻结了
The text was updated successfully, but these errors were encountered: