FER202Xuất hiện trong 1 đề thi
In ReactJS with Bootstrap, select the JSX code snippet to create a button with a blue background and white text color.
Các lựa chọn
Aimport React from 'react';\nimport { Button } from 'react-bootstrap';
\nconst MyButton = () => {
return (
<Button variant="primary" className="btn-primary">
My Button
</Button>
);
};
\nexport default MyButton;
Bimport React from 'react';\nimport { Button } from 'react-bootstrap';
\nconst MyButton = () => {
return (
<Button variant="primary" className="btn btn-primary">
My Button
</Button>
);
};
\nexport default MyButton;
Cimport React from 'react';\nimport { Button } from 'react-bootstrap';
\nconst MyButton = () => {
return (
<Button variant="primary" className="bg-primary text-white">
My Button
</Button>
);
};
\nexport default MyButton;
Dimport React from 'react';\nimport { Button } from 'react-bootstrap';
\nconst MyButton = () => {
return (
[Phần còn lại của lựa chọn D không hiển thị trong ảnh]