[ react] styled-components
2024.02.24
북마크 작성자 정보
작성일/수정일
2024-02-24 20:09:35 / 2024-02-24 20:09:35
style-component
최상위 태그인 Component가 생성됨.
https://style-components.com/
1. npm install styled-components 설치
2. import style from 'style-components';
Button 최상위 태그인 Component 생성
import styled from 'styled-components'
const styleButton = style`
color : white;
background : purple;
`;
Div 최상위 태그인 Component 생성
import styled from 'styled-components';
const StyleButton = style.div`
color : white;
background : purple;
`;