R202_-_SU_2024_-_Block_5_-_FE_2670.webp
free_spirit

R202_-_SU_2024_-_Block_5_-_FE_2670.webp

Kizspy | Question: 20
(Choose 2 answers)
Select the code snippet that correctly defines a Functional Component in React.
A. class MyComponent extends React.Component { render() { return <div>Hello, World!</div>;
}
B. function MyComponent() { return <div>Hello, World!</div>;}
C. const MyComponent = () => { return <div>Hello, World!</div>;};
D. const MyComponent = React.createClass({render() { return <div>Hello, World!</div>;}});
FUOVE

Thông tin

Category
FER202
Thêm bởi
free_spirit
Ngày thêm
Lượt xem
2,123
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom