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

css scoping #8

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

css scoping #8

wants to merge 1 commit into from

Conversation

DaleSeo
Copy link
Contributor

@DaleSeo DaleSeo commented Oct 22, 2024

No description provided.

@DaleSeo
Copy link
Contributor Author

DaleSeo commented Oct 22, 2024

@nhistory 이 방법에 대해서 어떻게 생각하세요? React에서 이제 JSX 안에 <style>을 넣는 것을 지원하기 때문에, CSS의 @scope을 사용해서 컴포넌트로 스타일 범위를 제한할 수가 있네요. 저도 해보고 되길래 놀랐네요 ㅋㅋ

https://react.dev/reference/react-dom/components/style

@nhistory
Copy link

@DaleSeo 오 그럼 순수 리액트에서도 한 파일 안에서 자유롭게 스타일링 적용할 수 있겠네요. 근데 공유해주신 링크 보니 아직 정식 릴리즈 되지는 않은 것 같은데 이 부분은 상관 없을까요?

@DaleSeo
Copy link
Contributor Author

DaleSeo commented Oct 22, 2024

@nhistory 좋은 질문이네요. 호환성 문제가 있을지 확인을 해봐야할 것 같습니다. 예를 들어 사용자가 React 18.3 미만 버전을 사용하면 작동을 안 한다거나...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants