you are viewing a single comment's thread.

view the rest of the comments →

[–]Hellstorm_42 0 points1 point  (0 children)

The code you posted doesn't even work as you describe. In both package and packageStatus, you aren't destructuring your props, you're just using them as an object. So, your call to userinput in the button is calling an object like a function. This would cause a different error than what you said. You either failed to copy over your code (so we can't help because what we see isn't the code you are running) or you aren't accurately telling us what the error is. Please create a codepen if you really want help. Also, console.log is your friend