How to add Buy me coffee script dynamically into React application or Javascript

Stumble upon in the search of adding Buy me coffee script into react application land to the following wonderful hook solution to add script to react on stack overflow here I will also add up here the update code of stack overflow which helped in the solution (for incase above shared link will be changed […]

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 […]