Code Monkey home page Code Monkey logo

react2's Introduction

컴포넌트를 꾸미기 위한 도구들

  1. Sass
  2. CSS Module
  3. styled-components

Sass (Syntactically awesome stylesheets) : 한국말로 '짱 멋있는 스타일 시트'

sass의 확장자

  1. .sass
    • 먼저 나온 확장자이지만 괄호를 사용하지 않고 들여쓰기로 구분했다.
  2. .scss
    • css 문법을 적용하였으며 현재 사용되고 있다.

sass 라이브러리 설치하기 터미널에서 $ yarn add node-sass

설치한 라이브러리는 sass로 작성한 코드를 css로 변환하는 작업을 해준다.

classname을 짓는 라이러리 터미널에서 $ yarn add classnames

color 참고 차이트 : https://yeun.github.io/open-color/

반복되는 것이 있다면 @mixin xxxx($yyy) {} 로 선언해서 @include xxxx($yyy)로 불러서 사용가능하다.

className이 겹치지 않게 작성하는 팁 1. 컴포넌트의 이름을 고유하게 지정 2. 최상위 엘리먼트의 클래스 이름을 컴포넌트 이름과 똑같게 그 내부에서 셀렉터 사용한다.

react2's People

Contributors

ccc4804 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.