Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
updated example to correctly increment currenttime
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Banks committed May 29, 2019
1 parent 19f37fe commit f729e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/state-and-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ There's another form of `setState` we can use. When the new state we want our co
function MyComponent:didMount()
self:setState(function(state)
return {
currentTime = currentTime + state.currentTime
currentTime = 1 + state.currentTime
}
end)
end
Expand Down

0 comments on commit f729e33

Please sign in to comment.