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

React-Responsive 작성룰 #87

Open
nyeoni opened this issue Dec 30, 2021 · 0 comments
Open

React-Responsive 작성룰 #87

nyeoni opened this issue Dec 30, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@nyeoni
Copy link
Collaborator

nyeoni commented Dec 30, 2021

React-Responsive 작성룰

이슈에 대한 설명

  • 반응형 작업을 위해 react-responsive 사용
import MediaQuery from "react-responsive";

....
return (
    <>
      <MediaQuery minWidth={1024}>
        // PC View
      </MediaQuery>
      <MediaQuery minWidth={768} maxWidth={1023}>
        // Tablet View
      </MediaQuery>
      <MediaQuery maxWidth={767}>
        // Mobile View
      </MediaQuery>
    </>
  );

checkList

  • 위의 기준으로 PC, Tablet, Mobile 작업할 예정
  • PC : minWidth={1024}
  • Tablet : minWidth={768}, maxWidth={1023}
  • Mobile: maxWidth={767}

주의사항

@nyeoni nyeoni added the documentation Improvements or additions to documentation label Dec 30, 2021
@nyeoni nyeoni pinned this issue Dec 30, 2021
@hainho hainho unpinned this issue Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants