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

[렌더링 방식의 분석] 우디(류정우) 미션 제출합니다. #83

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

jw-r
Copy link

@jw-r jw-r commented Oct 16, 2023

🧐 2단계 - 렌더링 방식의 분석

에디 안녕하세요~!

1단계에서 렌더링 방식과 서버 컴포넌트, 클라이언트 컴포넌트가 개념적으로 정리가 되지 않아서 제가 선택한 방식이 어떤 방식인지도 제대로 설명하기 어려웠는데, 이렇게 렌더링 방식에 대해서만 다뤄보니 조금 이해가 된 것 같아요🤩

에디에게 마지막 미션을 리뷰받을 수 있다니 영광이네요!!
잘 부탁드립니다🤩

Copy link
Member

@ksone02 ksone02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체적으로 잘 비교해서 작성해주신 것 같아요! 하지만 렌더링 방법에 따른 성능을 직접 측정하고 비교하는 부분이 추가되어있으면 더 좋았을 것 같습니다!

# 사용자 경험(UX) 측면 분석

이번 미션에서는 로드맵 디테일 페이지를 next.js app router를 통해 SSR 방식으로 구현했습니다.
기존 프로젝트의 컴포넌트를 그대로 재사용하기 위해 styled-components를 도입했고, 이 때문에 API 요청을 client side에서 수행해야 했기 때문입니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styled-components를 그대로 사용하고도 client components가 아닌 server components로 api 요청을 때릴 수 있어요! 제 테코톡에서 설명 드렸는데 아직 유튜브에 안올라온 관계로.. 짧게 설명하자면 스타일드 컴포넌트를 파일을 분리하고 해당 파일에 'use client'를 선언하면 됩니다! 기존 컴포넌트는 그대로 서버 컴포넌트로 사용하구요.

Copy link
Member

@ksone02 ksone02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨어요~~!

@ksone02 ksone02 merged commit 5bbcda3 into woowacourse:evencoding Oct 24, 2023
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.

None yet

2 participants