Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emotion 점진적 도입 #495

Open
2 tasks done
14KGun opened this issue Mar 29, 2023 · 1 comment · Fixed by #488 or #594
Open
2 tasks done

emotion 점진적 도입 #495

14KGun opened this issue Mar 29, 2023 · 1 comment · Fixed by #488 or #594
Assignees
Labels
⚒ enhancement New feature or request 🔨refactoring 기존의 코드를 리팩토링합니다

Comments

@14KGun
Copy link
Member

14KGun commented Mar 29, 2023

Summary

Inline style을 지양하고, 기존의 inline style을 emotion으로 대체합니다.

jsx파일의 emotion 사용법

import { css } from "@emotion/css";

const Component = () => (
  <div
    className={css({
      background: "red",
    })}
  />
);

tsx파일의 emotion 사용법

const Component = () => (
  <div
    css={{
      background: "red",
    }}
  />
);

Emotion document

Tasks

  • 기존 jsx 파일 styling emotion으로 대체
  • 기존 tsx 파일 styling emotion으로 대체
@14KGun 14KGun added ⚒ enhancement New feature or request 🔨refactoring 기존의 코드를 리팩토링합니다 labels Mar 29, 2023
@14KGun
Copy link
Member Author

14KGun commented Mar 29, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚒ enhancement New feature or request 🔨refactoring 기존의 코드를 리팩토링합니다
Projects
None yet
1 participant