다른 포스팅 찾아 볼 필요 없다.
공식 예제 보고, 설정하면 된다.
Link와 같은 NextJS 자체 컴포넌트 랩핑 예시, SSR 환경에서 스타일이 잘 적용되어 내려오는지 모두 확인해 볼 수 있다.
물론 타입스크립트도 지원 ;)
https://github.com/mui-org/material-ui/tree/master/examples/nextjs
https://github.com/mui-org/material-ui/tree/master/examples/nextjs-with-typescript
'개발 이야기 > Next.js' 카테고리의 다른 글
Next.js - Assets 경로와 런타임 변수 - 4 (0) | 2021.09.07 |
---|---|
Next.js - 서버 분리 - 3 (0) | 2021.09.07 |
Next.js - 데이터 가져오기 - 2 (0) | 2021.08.05 |
Next.js - 시작 - 1 (0) | 2021.08.01 |