Skip to content

Commit

Permalink
Fixed example code
Browse files Browse the repository at this point in the history
  • Loading branch information
anothertempore committed Sep 16, 2018
1 parent bbd2538 commit 02c3453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ updateComponent(prevElement, nextElement) {
const prevRenderedElement = this._renderedComponent._currentElement
const nextRenderedElement = this.render()

if (shouldUpdateComponent(prevRenderedComponent, nextRenderedComponent)) {
if (shouldUpdateComponent(prevRenderedElement, nextRenderedElement)) {
Reconciler.receiveComponent(this._renderedComponent, nextElement)
} else {
// remount everything under this node
Expand Down

0 comments on commit 02c3453

Please sign in to comment.