Skip to content

Commit 8dcbb66

Browse files
EVENTS
1 parent acd229a commit 8dcbb66

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

react.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
)

0 commit comments

Comments
 (0)