A
A
ali52021-09-15 12:25:41
React
ali5, 2021-09-15 12:25:41

Listen to component events?

Hello.
Ran into a section in React - You can't listen to component events directly.
What is this understanding for? explain who fumbles, you need to know something from JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
low molecular macro, 2021-09-15
@ali5

you need through special props that start with on . For example,onClick={clikcHandler}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question