Misa

Q46_191_20240401091425.jpg

  • Media owner Misa
  • Ngày thêm
(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


Q: 46

Thông tin

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

Image metadata

Filename
Q46_191_20240401091425.webp
File size
198.6 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên