B
B
bacca2018-04-24 16:06:56
React
bacca, 2018-04-24 16:06:56

How to get a SyntheticEvent object while using a function passed through props?

Good afternoon, I passed the function as props. I use it as an event handler.
At the output I get an error, e = undefined.
component
5adf2bb01643c724595737.jpeg
code: decorator code:
5adf2bc6cf1c9798747336.jpeg
PS Everything works. only adds "#" to the address bar.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question