R201m_-_FA_2024_-_FE_2990.webp
H

R201m_-_FA_2024_-_FE_2990.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

34

Thông tin

Category
FER201m
Thêm bởi
Hương Thảo
Ngày thêm
Lượt xem
158
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
R201m_-_FA_2024_-_FE_2990.webp
File size
202.3 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom