Optimistically Update Multiple Values in State Using React's setState
lessonDuration 3m 39s
We'll add a method to our [class-based React component](https://reactjs.org/docs/react-component.html) and immediately update state _before_ firing off our request. Using a [setState updater function](https://reactjs.org/docs/react-component.html#setstate), we will update component state based on previous state and toggle the "liked" status of a tweet upon the user clicking the heart icon. We will simultaneously increment or decrement the target tweet's `likes` property and appropriately add or remove the `tweetId` from the `likedTweets` array.