You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, I learned something new that I haven't seen documented before. If you call setState with a function, the function is immediately called and whatever it returns is what's stored. I figured this out by using this bit of code and looking at the stack:
Hi!
I'm trying to implement your lib in a React functional component.
However I'm getting a
Cannot read property 'tokenize' of undefined
error when attempting to get the reference for the tokenize function.Here's a summary of my code:
I've also tried doing something like
getTokenRef={ref => setTokenizeFunc.bind(Braintree, ref)}
but still no luck.Is this implementation possible? Or should I just stick to class components in this scenario?
Thank you!
The text was updated successfully, but these errors were encountered: