Answer the question
In order to leave comments, you need to log in
If the function is in a separate file, it fires on onClick, how can I pass the event to it?
If the function is in a separate file, it fires on onClick, how can I pass the event to it?
Answer the question
In order to leave comments, you need to log in
It is already passed as the first argument when called. Just use it in your handler:
handleCountyItemClick = e => {
// do something with e
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question