ES6 Spread Operators
We will further extend our application here by modifying the onDismiss() method to tackle with the result object.
We'll cover the following
The “Dismiss” button doesn’t work because the onDismiss()
method is not aware of the complex result object. It only knows about a plain list in the local state. But it isn’t a plain list anymore. Let’s change it to operate on the result object instead of the list itself.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy