R201m_-_FA_2023_-_RE_1146.webp
C

R201m_-_FA_2023_-_RE_1146.webp

(Choose 1 answer)
What will the following code output to the console when a user clicks the button?
class MyComponent extends React.Component {
handleClick(e) {
console.log(e.target);
}
render() { return (
<button onClick={(params) => this.handleClick(params)}>btn</button>);
}
ReactDOM.render(<MyComponent />, document.body);
A. undefined
B. MouseEvent
C. <button>btn</button>
D. throw an error


E36

Thông tin

Category
FER201m
Thêm bởi
Charmy_85
Ngày thêm
Lượt xem
521
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
R201m_-_FA_2023_-_RE_1146.webp
File size
54.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom