diff --git a/docs/guide/state-and-lifecycle.md b/docs/guide/state-and-lifecycle.md index ed9a2f96..de027253 100644 --- a/docs/guide/state-and-lifecycle.md +++ b/docs/guide/state-and-lifecycle.md @@ -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