Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react event stop propagation

//On SyntheticEvent (parameters from props like onClick)
//e.g. <button onClick={(event) => {...}}>Click Me!</button>
event.stopPropagation()
Source by it.reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #event #stop #propagation
ADD COMMENT
Topic
Name
9+5 =