N T S E L M A N D W E B C O M P O N E N T S - R I C H A R D F E L D M A N H T T P S : / / W W W. Y O U T U B E . C O M / WAT C H ? V = A R 3 TA K W E 8 O 0
R E A C T let customEventDecoder = Decode.at [ "detail" ] Decode.string decoder = Decode.map OnTriggerEvent customEventDecoder in node "x-widget" [ attribute "eventname" "trigger" , on "trigger" decoder ] [] Listen to DOM events
}) function send(e) { e.target.dispatchEvent(event) } return ( <section> <button onClick={send}>Send event</button> </section> ) E V E N T S F R O M R E A C T Trigger DOM events