StyledComponents1 [리액트] tailwindcss style components 하는 설치방법 테일윈즈 스타일 컴포넌트 설치하는 방법 테일윈즈를 쓰다보면 편리하기는 한데 코드가 지저분해지는 현상이 생긴다 이럴 때 테일윈즈 스타일 컴포넌트를 사용해주면 편할 것 같아서 자주 사용하려고 한다 설치방법은 아래와 같다 npm i -D tailwind-styled-components 터미널에 테일윈드 컴포넌트를 설치해준다 import React from "react"; import tw from "tailwind-styled-components"; const Container = tw.div` flex items-center justify-center flex-col w-full bg-indigo-600 ` render( Use the Container as any other React Component ).. 2023. 3. 23. 이전 1 다음