File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -1200,4 +1200,27 @@ const ChildComponent = () => {
12001200 < button onClick = { ( ) => setCount ( count + 1 ) } > Click</ button >
12011201 </ div >
12021202 )
1203- }
1203+ }
1204+
1205+
1206+ // EVENTS
1207+ const EventComponents = ( ) => (
1208+ < >
1209+ < button onCLick = { } > btn</ button >
1210+ < button onContextMenu = { } > btn</ button >
1211+ < button onDoubleClick = { } > btn</ button >
1212+ < button onMouseOver = { } > btn</ button >
1213+ < button onMouseOut = { } > btn</ button >
1214+ < button onChange = { } > btn</ button >
1215+ < button onSubmit = { } > btn</ button >
1216+ < button onFocus = { } > btn</ button >
1217+ < button onBlur = { } > btn</ button >
1218+ < button onKeyDown = { } > btn</ button >
1219+ < button onKeyPress = { } > btn</ button >
1220+ < button onKeyUp = { } > btn</ button >
1221+ < button onCopy = { } > btn</ button >
1222+ < button onCut = { } > btn</ button >
1223+ < button onPaste = { } > btn</ button >
1224+ { /* and many more -> https://reactjs.org/docs/events.html */ }
1225+ </ >
1226+ )
You can’t perform that action at this time.
0 commit comments