댓글 검색 목록

[Reactjs] React를 위한 친숙하고 성능이 뛰어난 컴파일 타임 CSS-in-JS 라이브러리.

페이지 정보

작성자 운영자 작성일 21-04-07 12:46 조회 996 댓글 0

React를 위한 친숙하고 성능이 뛰어난 컴파일 타임 CSS-in-JS 라이브러리.


https://github.com/atlassian-labs/compiled


import { styled, ClassNames } from '@compiled/react';

// Tie styles to an element
<div css={{ color: 'purple' }} />

// Create a component that ties styles to an element
const StyledButton = styled.button`
  color: ${(props) => props.color};
`;

// Use a component where styles are not necessarily tied to an element
<ClassNames>
  {({ css }) => children({ className: css({ fontSize: 12 }) })}
</ClassNames>

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.