개발일지
TIL 2022.05.15
e_e
2022. 5. 15. 23:41
@media(min-width: 650px) {
.App { width: 640px;}
}
@media(max-width: 650px) {
.App { width: 90vw;)
}
const MyButton = ({ text, type, onClick }) => {
const btnType = ["positive", "negative"].includes(type) ? type : "default";
return (
<button
className={["MyButton", `MyButton_${type}`].join(" ")}
onClick={onClick}
>
{text}
</button>
);
};
#100daysofcode day31