목록2024/05/23 (1)
훈돌라
2024. 5. 23. 리액트 styled components, router dom
import './App.css'import styled from 'styled-components';const StBox = styled.div` width: 100px; height: 100px; border: 1px solid ${(props) => props.borderColor}; margin: 20px;`const boxList = ["red", "green", "blue"];const getBoxName = (color) => { switch (color) { case "red": return "빨간 박스"; case "green": return "초록 박스"; case "blue": return "파랑 박스"; default: ..
카테고리 없음
2024. 5. 23. 21:45