in React or Javascript error: Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

If you are facing similar problem, this is coming up due to you miss the syntax of destructing or you have wrongly typed out your code, as I was doing, fix is below. Example error code: Should be: Actually solution we could have found from error description itself, if we have glance properly to error […]