Hi,By your very comprehensive description the comprehensive answer is handleClick function is undefined, meaning the handleClick function can't be found in the context from where it is called.
/RegardsHenrik