Q48_46_20250728073220.webp
white_cloud1

Q48_46_20250728073220.webp

ple Choices
Kizspy.me
(Choose 1
answer)
ΠΑ
☐ B
ос
☐ D
Which of the following correctly passes an object as a prop to a child component?
A. const user = {name: "Hedy", age: 35};
function ParentComponent() {
return <ChildComponent user={user.toString()} />;
B. const user = { name: "Hedy", age: 35};
function ParentComponent() {
}
return <ChildComponent user="user" />;
C. const user = {name: "Hedy", age: 35};
function ParentComponent() {
}
return <ChildComponent user="{user}" />;
D. const user { name: "Hedy", age: 35};
function ParentComponent() {
}
return <ChildComponent user={user} />;
I want to in the exam.
LAPTOP RUNNING

Thông tin

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

Share this media

Back
Bên trên Bottom