728x90 반응형 styled1 react 라이브러리 styled components css문법 그대로 style을 작성하게 해주는 녀석 https://styled-components.com/ const Button = styled.button` background: transparent; border-radius: 3px; border: 2px solid #BF4F74; color: #BF4F74; margin: 0.5em 1em; padding: 0.25em 1em; ${props => props.$primary && css` background: #BF4F74; color: white; `} `; const Container = styled.div` text-align: center; ` render( Normal Button Primary Button ); 2023. 7. 13. 이전 1 다음 728x90 반응형