Skip to content

Conversation

@Yeonseo-Jo
Copy link
Owner

@Yeonseo-Jo Yeonseo-Jo commented Apr 11, 2024

๐Ÿ”— ๋ฐฐํฌ ๋งํฌ

๐Ÿ“Œtanstack-react-query ์ปค์Šคํ…€ ํ›…๋“ค

(1) ์œ ์ € ํ”„๋กœํ•„ ์ •๋ณด, ํŒ”๋กœ์›Œ&ํŒ”๋กœ์ž‰ ์ •๋ณด get : hooks > user > useGetCombinedUserInfo.ts

  • ํ•œ ํŽ˜์ด์ง€์—์„œ ๋‘ useQuery(ํ”„๋กœํ•„ ์ •๋ณด get, ํŒ”๋กœ์›Œ, ํŒ”๋กœ์ž‰ ์ •๋ณด get)๋ฅผ ๋ณ‘๋ ฌ์ ์œผ๋กœ ์‹คํ–‰ํ• ์ˆ˜ ์žˆ๋„๋ก useQuries๋กœ ๊ตฌํ˜„
  • combine ๋ฌธ๋ฒ•์œผ๋กœ data, loading, error ์ฒ˜๋ฆฌ ํ•œ ๋ฒˆ์— return

(2) mutation ํ›„ invalidate ์š”์ฒญ ์ฒ˜๋ฆฌ ํ•˜๋Š” ์ปค์Šคํ…€ ํ›… : hooks > common > useGetMutate.ts

  • queryKey, mutationFn, invalidateOption์„ ๋ฐ›์•„์„œ mutate ํ›„, ์„ฑ๊ณต (onSuccess) ์‹œ ํ•ด๋‹น queryKey์˜ ๋ฐ์ดํ„ฐ๋ฅผ invalidate ์š”์ฒญํ•˜๋Š” ๋กœ์ง์„ ํ•˜๋‚˜์˜ ์ปค์Šคํ…€ ํ›…์œผ๋กœ ๋งŒ๋“ค์–ด์„œ ์‚ฌ์šฉ

(2) ํŒ”๋กœ์šฐ ํ•˜๊ธฐ (useUpdateFollow) : hooks > follow > useUpdateFollow.ts

  • useGetMutate๋ฅผ ์‚ฌ์šฉํ•ด์„œ, putFollower ๋ฐ์ดํ„ฐ ํŒจ์นญ ํ•จ์ˆ˜ ์„ฑ๊ณตํ•˜๋ฉด 'userFollowInfo'์˜ queryKey๋ฅผ ๊ฐ€์ง€๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์žฌ์š”์ฒญํ• ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” mutate๋ฅผ returnํ•จ
  • ์ฆ‰, put (update) ํ†ต์‹  ํ›„ ๊ฐ’ ์žฌ๊ฒ€์ฆ
  • ๋ฒ„ํŠผ ํด๋ฆญ์‹œ mutate ๋ฉ”์„œ๋“œ ์ธ์ž์— ์ƒˆ๋กœ์šด ๋ฐ์ดํ„ฐ ์ฃผ์ž…ํ•˜๋„๋ก onClick handler์—์„œ ์‚ฌ์šฉ

(3) ์–ธํŒ”๋กœ์šฐํ•˜๊ธฐ (useUpdateUnfollow) : hooks > follow > useUpdateUnollow.ts

  • useGetMutate๋ฅผ ์‚ฌ์šฉํ•ด์„œ, deleteFollower ๋ฐ์ดํ„ฐ ํŒจ์นญ ํ•จ์ˆ˜ ์„ฑ๊ณตํ•˜๋ฉด 'userFollowInfo'์˜ queryKey๋ฅผ ๊ฐ€์ง€๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์žฌ์š”์ฒญํ• ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” mutate๋ฅผ returnํ•จ
  • ์ฆ‰, delete ํ†ต์‹  ํ›„ ๊ฐ’ ์žฌ๊ฒ€์ฆ
  • ๋ฒ„ํŠผ ํด๋ฆญ์‹œ mutate ๋ฉ”์„œ๋“œ ์ธ์ž์— ์ƒˆ๋กœ์šด ๋ฐ์ดํ„ฐ ์ฃผ์ž…ํ•˜๋„๋ก onClick handler์—์„œ ์‚ฌ์šฉ


๐Ÿ“ŒํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…

1. vanilla extract ๊ด€๋ จ ํŒจํ‚ค์ง€๋ฅผ yarn ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋กœ ์„ค์น˜ ์‹œ invalid URL ์—๋Ÿฌ ๋ฐœ์ƒ

  • ํ•ด๊ฒฐ : node v.18.18.0 -> node v.21.7.2(latest)์œผ๋กœ ์ตœ์‹  ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ๋กœ ํ•ด๊ฒฐ
  • ๐Ÿ”—์ฐธ๊ณ  ์ž๋ฃŒ

2. vanilla extract ๊ด€๋ จ ์„ค์ •์„ ์œ„ํ•ด vanliila extract ๊ณต์‹ ๋ฌธ์„œ์— ๋‚˜์™€ ์žˆ๋“ฏ์ด next.config.mjs ์ˆ˜์ • -> require, module์—์„œ ๋ฌธ๋ฒ• ์—๋Ÿฌ

  • ํ•ด๊ฒฐ : es6 ๋ฌธ๋ฒ•์— ๋งž๊ฒŒ ์ˆ˜์ • (require -> import // module -> export default ๋“ฑ)

3. broswer caching์œผ๋กœ ์ธํ•ด invalidateํ•œ ๋ฐ์ดํ„ฐ๊ฐ€ ์ตœ์‹  ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์˜ค์ง€ ๋ชปํ•˜๋Š” ์ด์Šˆ ํ•ด๊ฒฐ์„ ์œ„ํ•ด, header์— browser caching ๊ด€๋ จ ์„ค์ • ๋„ฃ์–ด์คŒ -> cors ์—๋Ÿฌ

4. next.js์—์„œ sessionStorage ์ ‘๊ทผ ์‹œ sessionStorage is not defined ์—๋Ÿฌ ๋ฐœ์ƒ

  • ์›์ธ : next.js์—์„œ๋Š” csr ์ด์ „ ssr ๋ Œ๋”๋ง ์ˆ˜ํ–‰ํ•˜๋Š”๋ฐ, sessionStorage๊ฐ€ ์žˆ๋Š” window ๊ฐ์ฒด๋Š” client-side์—์„œ๋งŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅ (ssr ๋‹จ๊ณ„์—์„œ๋Š” window, document์™€ ๊ฐ™์€ client side ์ „์—ญ ๊ฐ์ฒด ์ ‘๊ทผ ๋ฐ ์‚ฌ์šฉ ๋ถˆ๊ฐ€๋Šฅ) -> ๊ทธ๋ž˜์„œ client side๊ฐ€ ๋กœ๋“œ ๋ ๋•Œ๊นŒ์ง€ sessionStorage ์ ‘๊ทผ ๋ถˆ๊ฐ€๋Šฅ
  • ํ•ด๊ฒฐ : typeof window !== 'undefined' ๊ตฌ๋ฌธ ์ถ”๊ฐ€๋กœ client side ๋กœ๋“œ ์‹œ์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌ๋ฌธ ์ถ”๊ฐ€

@Yeonseo-Jo Yeonseo-Jo self-assigned this Apr 11, 2024
@vercel
Copy link

vercel bot commented Apr 11, 2024

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
github-follow-detector-refactor โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Apr 17, 2024 7:32am

Copy link

@Arooming Arooming left a comment

Choose a reason for hiding this comment

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

ํ—ˆ์—… ๋„ˆ๋ฌด๋„ˆ๋ฌด ๊ผผ๊ผผํ•˜๊ฒŒ ์‹ ๊ฒฝ์จ์„œ ํ•ด์ค€ ํ‹ฐ๊ฐ€ ๋งŽ์ด ๋‚˜๋„ค์š”..!
๋•๋ถ„์— ๋ฆฌ๋ทฐํ•˜๋ฉด์„œ ๋งŽ์ด ๋ฐฐ์›Œ๊ฐ€๊ธฐ๋„ ํ•˜๊ณ  ์ œ ํ”„์ ์—๋„ ๋ฐ˜์˜ํ•ด์•ผ๊ฒ ๋‹ค ๋А๋‚€ ๋ถ€๋ถ„์ด ๋งŽ์Šต๋‹ˆ๋‹ค!! ์ˆ˜๊ณ  ๋งŽ์•˜์„œ์šฉ ๐Ÿ’–๐Ÿ’–๐Ÿ’–

ps. css ๋„ค์ด๋ฐ์€ vanilla-extract ๊ณต์‹๋ฌธ์„œ์—๋„ ๋‚˜์™€์žˆ๋Š” ๋งŒํผ, camelCase๋กœ ์ •์˜ํ•ด์ฃผ๋ฉด ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹น !!

Choose a reason for hiding this comment

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

P5: ํ˜น์‹œ ์—ฌ๊ธฐ ๋ผ์šฐํŒ… ์ฃผ์†Œ๋ฅผ home์ด ์•„๋‹ˆ๋ผ (home)์œผ๋กœ ํ•˜์‹  ์ด์œ ๊ฐ€ ๋ญ”์ง€ ๋ฌผ์–ด๋ณด๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ,
์ฐพ์•„๋ณด๋‹ˆ ๊ด„ํ˜ธ๋กœ ๊ฐ์‹ธ์ฃผ๋ฉด url ์ฃผ์†Œ์— ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๊ณ  ๋ผ์šฐํŠธ๋ฅผ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•˜๋„ค์š”..!
๋•๋ถ„์— ์ƒˆ๋กœ์šด ๋‚ด์šฉ ์•Œ์•„๊ฐ‘๋‹ˆ๋‹น ! ๐Ÿ‘๐Ÿ‘

Copy link
Owner Author

Choose a reason for hiding this comment

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

๋งˆ์ž์š”! ํ† ํฐ์„ ์ž…๋ ฅํ•˜๋Š” ๋ทฐ์˜ url์€ /๋กœ ์œ ์ง€ํ•˜๋˜, follow-list ํŽ˜์ด์ง€์™€ ๋™์ผํ•œ ํด๋” ์œ„๊ณ„๋ฅผ ๋งŒ๋“ค์–ด์ฃผ๊ณ  ์‹ถ์–ด์„œ url ์ฃผ์†Œ์— ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๋Š” route group์œผ๋กœ ๋ฌถ์–ด์คฌ์Šต๋‹ˆ๋‹น~

Comment on lines +15 to +16
queryKey: QUERY_KEYS.user.followInfo,
queryFn: () => getUserFollowInfo(),

Choose a reason for hiding this comment

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

P5: ์ด๋Ÿฐ ์‹์œผ๋กœ ์ •์˜ํ•˜๋‹ˆ๊นŒ ํ›จ์”ฌ ๊น”๋”ํ•˜๊ณ  ์ข‹๋„ค์š”..! ์ €๋„ ์ด๋ ‡๊ฒŒ ๋ฆฌํŒฉํ† ๋งํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค . ..

next.config.mjs Outdated
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["avatars.githubusercontent.com"],

Choose a reason for hiding this comment

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

ASK: ์ด๊ฑฐ ํ˜น์‹œ ํ„ฐ๋ฏธ๋„์— imgaes/domains๋Š” deprecated๋˜์—ˆ์œผ๋‹ˆ remotePatterns๋ฅผ ํ™œ์šฉํ•ด๋ผ..! ๋ผ๋Š” ์›Œ๋‹์ด ๋œจ์ง€ ์•Š๋‚˜์š”!?

Copy link
Owner Author

Choose a reason for hiding this comment

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

์˜ค ๋Œ€๋ฐ• ๋œจ๋„ค์šฉ !! ๋ฃจ๋ฐ์ด๊บผ ๋ณด๊ณ  ์ˆ˜์ • ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹น!

Comment on lines 13 to 20
const token: string | null =
typeof window !== "undefined"
? getSessionStorageHandler().getItem("token")
: null;
const isHasToken =
typeof window !== "undefined"
? getSessionStorageHandler().hasItem("token")
: false;

Choose a reason for hiding this comment

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

ASK: ํ˜น์‹œ null๊ณผ false๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ˜•ํƒœ๋กœ ๊ตฌํ˜„ํ•˜์‹  ์ด์œ ๊ฐ€ ๋”ฐ๋กœ ์žˆ์„๊นŒ์š”!?
์กฐ๊ฑด๋ถ€ ์ฒ˜๋ฆฌ๋ฅผ ํ• ๋•Œ ๋นˆ ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š”๊ฒŒ ์ข‹์€ ํŒจํ„ด์€ ์•„๋‹ˆ๋ผ๊ณ  ๋“ค์–ด์„œ์š”..!
ํŠน๋ณ„ํ•œ ์ด์œ ๊ฐ€ ์—†๋‹ค๋ฉด ์•„๋ž˜์ฒ˜๋Ÿผ ์ˆ˜์ •ํ•ด๋ด๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹น ๐Ÿ˜บ๐Ÿ˜บ

Suggested change
const token: string | null =
typeof window !== "undefined"
? getSessionStorageHandler().getItem("token")
: null;
const isHasToken =
typeof window !== "undefined"
? getSessionStorageHandler().hasItem("token")
: false;
const token: string = typeof window !== "undefined"
&& getSessionStorageHandler().getItem("token");
const isHasToken = typeof window !== "undefined"
&& getSessionStorageHandler().hasItem("token");

Copy link
Owner Author

Choose a reason for hiding this comment

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

์ข‹์€ ํŒจํ„ด ์ œ์•ˆ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

token ๊ฐ’์€ ๊ฐ’์ด ์žˆ๊ฑฐ๋‚˜(string) ์—†์„ ๋•Œ๋Š” ๋ช…์‹œ์ ์œผ๋กœ null ๊ฐ’์ด ๋˜๋„๋ก ํƒ€์ž…์„ ์ง€์ •ํ•ด์ฃผ์—ˆ๋Š”๋ฐ์š”, ์‚ผํ•ญ์—ฐ์‚ฐ์ž๋กœ window๊ฐ€ undefined ์ผ ๋•Œ null ์ž„์„ ์ •์˜ํ•ด์ฃผ์ง€ ์•Š์œผ๋ฉด (&&์—ฐ์‚ฐ์ž ์‚ฌ์šฉ) ๊ฐ’์ด false(boolean type)์œผ๋กœ ์ธ์‹๋˜์–ด ํƒ€์ž… ์—๋Ÿฌ๊ฐ€ ๋‚˜๋”๋ผ๊ตฌ์š”!

๋ฐ˜๋ฉด isHasToken์€ boolean ๊ฐ’์˜ type์„ ๊ฐ–๋Š” ๊ฐ’์ด๊ธฐ ๋•Œ๋ฌธ์— ์ œ์•ˆ ์ฃผ์‹ ๊ฒƒ์ฒ˜๋Ÿผ ์‚ผํ•ญ ์—ฐ์‚ฐ์ž๊ฐ€ ์•„๋‹Œ && ์—ฐ์‚ฐ์ž๋กœ ๊ตฌํ˜„ํ•ด๋„ ๋ฌธ์ œ๊ฐ€ ์—†์—ˆ์Šต๋‹ˆ๋‹ค!

๋”ฐ๋ผ์„œ token์€ ์›๋ž˜ ๋กœ์ง๋Œ€๋กœ ์‚ผํ•ญ ์—ฐ์‚ฐ์ž๋กœ winodw๊ฐ’์ด ์žกํžˆ์ง€ ์•Š์„์‹œ null ๊ฐ’์„ ๋ช…์‹œํ•ด์ฃผ๊ณ ,
isHasToken์€ && ์—ฐ์‚ฐ์ž๋กœ window ๊ฐ’์ด ์žกํžˆ์ง€ ์•Š์„ ์‹œ false์˜ boolean ํƒ€์ž…์ด ์ถ”๋ก ๋˜๋„๋ก ๋กœ์ง ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค ~

Comment on lines +27 to +30
return [
{ type: LIST_TYPE.unMatched, list: unMatchedList },
{ type: LIST_TYPE.matched, list: matchedList },
];

Choose a reason for hiding this comment

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

!!! ๋„ˆ๋ฌด ๊น”๋”ํ•˜๊ณ  ์ข‹๋„ค์š” ๐Ÿ‘๐Ÿ‘

return deleteFollower(username);
};

return useGetMutate(queryKey, mutationFn, { exact: true });

Choose a reason for hiding this comment

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

์˜ค ์ด๋ ‡๊ฒŒ ์“ฐ๋‹ˆ๊นŒ ์ค‘๋ณต์ฝ”๋“œ๋„ ์ค„์–ด๋“ค๊ณ  ๊ฐ€๋…์„ฑ๋„ ํ›จ์”ฌ ์ข‹๋„ค์š”! ๋ฐฐ์›Œ๊ฐ‘๋‹ˆ๋‹น . . .. ๐Ÿ‘๐Ÿ‘

const handleClickConfirmFollowBtn = (
e: React.MouseEvent<HTMLButtonElement>
) => {
if (!token) e.preventDefault();

Choose a reason for hiding this comment

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

P2: ํ† ํฐ์ด ์—†๋‹ค๋ฉด ํด๋ฆญ์ด๋ฒคํŠธ๋ฅผ ํ•ธ๋“ค๋งํ•˜๋Š” ํ•จ์ˆ˜๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š๋„๋ก ํ•˜๊ธฐ ์œ„ํ•ด ์ด ๋ถ€๋ถ„์„ ์ถ”๊ฐ€ํ•ด์ฃผ์‹  ๋ถ€๋ถ„์ด ๋งž์„๊นŒ์š”?
๊ทธ๋ ‡๋‹ค๋ฉด ์•„๋ž˜ ๋ฒ„ํŠผ ํƒœ๊ทธ์˜ disabled ์†์„ฑ์„ ์ด์šฉํ•ด๋ณด๋Š” ๊ฑด ์–ด๋–จ๊นŒ์š”!?
๋ฒ„ํŠผ ๋น„ํ™œ์„ฑํ™”๋ฅผ ์œ„ํ•ด ๋งŒ๋“ค์–ด์ง„ ์†์„ฑ์ด๋‹ˆ ์ด๋ฅผ ํ™œ์šฉํ•˜๋Š” ๊ฒƒ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

<button disabled={!token}> ... </button>

Copy link
Owner Author

Choose a reason for hiding this comment

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

disabled ์†์„ฑ ๋„ˆ๋ฌด ์ข‹๋„ค์š”! ์ œ๊ฐ€ ์˜๋„ํ–ˆ๋˜ ๋™์ž‘์„ ๋” ์ž˜ ๊ตฌํ˜„ํ•ด์ฃผ๋Š” ๋ฐฉ์‹์ด๋ผ ๋ฐ”๋กœ ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹คโœจ


// token ์ž…๋ ฅ ํ›„ ํ—ค๋”์— ์ €์žฅํ•˜๋Š” ํ•จ์ˆ˜
export const setInstanceToken = (token: string) => {
instance.defaults.headers.common["Authorization"] = `Bearer ${token}`;

Choose a reason for hiding this comment

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

P5: ๋ฐ˜๋“œ์‹œ ํ† ํฐ์„ ๋„ฃ์–ด์ค˜์•ผ ํ•˜๋‹ˆ๊นŒ ์š”์ฒญ์ด ๊ฐ€๊ธฐ ์ „์— ์ด๊ฑธ ๋บ์–ด์™€์„œ ํ† ํฐ ๊ฐ’์„ ๋„ฃ์–ด์ค˜์•ผ๊ฒ ๋‹ค! ๋ผ๊ณ  ์ƒ๊ฐํ•ด์„œ, interceptor๋ฅผ ํ™œ์šฉํ•ด์„œ ๊ตฌํ˜„ํ–ˆ๋Š”๋ฐ์š”..!
๋‹ค์‹œ axios๋ž‘ AxiosInstance์— ๋Œ€ํ•ด ์ฐฌ์ฐฌํžˆ ์ฐพ์•„๋ณด๋‹ˆ, ์–ด์ฐจํ”ผ ๊ธฐ๋ณธ์ ์œผ๋กœ ํ† ํฐ์ด ์žˆ์–ด์•ผ ๋™์ž‘ํ•˜๋Š” ๋ถ€๋ถ„์ด๋ผ์„œ interceptor์™€ ๊ฐ™์€ ์˜ˆ์™ธ์ ์ธ ์„ค์ •์„ ํ•ด์ค„ ํ•„์š”์—†์ด ๊ธฐ๋ณธ๊ฐ’(defaults)์œผ๋กœ ๋„ฃ์–ด์ฃผ๋Š”๊ฒŒ ๋” ๋งž๋Š” ๊ฒƒ ๊ฐ™๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ค์—ˆ์Šต๋‹ˆ๋‹น. . !

๋ช…ํ™•ํ•œ ๊ธฐ์ค€์ด ์žˆ๋‹ค๊ธฐ ๋ณด๋‹จ ๊ทธ๋•Œ ๊ทธ๋•Œ ์ƒํ™ฉ์„ ์ž˜ ํŒ๋‹จํ•˜๊ณ  ์ž˜ ์„ ํƒํ•˜๋Š”๊ฒŒ ์ค‘์š”ํ•œ ๊ฒƒ ๊ฐ™๋‹ค๋Š” ๊ฑธ ๋‹ค์‹œ ํ•œ ๋ฒˆ ๋А๋ผ๊ณ  ๊ฐ‘๋‹ˆ๋‹ค ..~


color: "#C9D1D9",

borderRadius: "10px",

Choose a reason for hiding this comment

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

P5: ๊ฐœ์ธ์ ์ธ ์ทจํ–ฅ์ผ ์ˆ˜ ์žˆ์ง€๋งŒ ์—ฌ๊ธฐ๋„ ๋‹จ์œ„๋ฅผ ํ†ต์ผํ•ด์ฃผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค !

Copy link
Owner Author

Choose a reason for hiding this comment

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

border๊ณผ ๊ฐ™์€ ์†์„ฑ์€ ๋ฐ˜์‘ํ˜• ๊ตฌํ˜„์ด ํฌ๊ฒŒ ์œ ์˜๋ฏธํ•˜์ง€ ์•Š๋‹ค๊ณ  ์ƒ๊ฐํ•˜์—ฌ px ๋‹จ์œ„๋ฅผ,
๋‚˜๋จธ์ง€ ์†์„ฑ๋“ค์€ rem ๋‹จ์œ„๋ฅผ ์‚ฌ์šฉํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค!

display: "flex",
justifyContent: "center",

height: "75%",

Choose a reason for hiding this comment

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

ASK: ์š”๋Ÿฐ ์‹์œผ๋กœ ๊ตฌ์ฒด์ ์ธ % ๊ฐ’์œผ๋กœ ๋†’์ด๋‚˜ ๋„ˆ๋น„ ๊ฐ’์„ ์ค€ ๋ถ€๋ถ„์ด ๊ฝค ์žˆ๋Š” ๊ฒƒ ๊ฐ™์€๋ฐ์š”..!
% ๋‹จ์œ„๋Š” ์ปจํ…Œ์ด๋‹ ๋ธ”๋ก์˜ ์˜ํ–ฅ์„ ๋งŽ์ด ๋ฐ›๊ธฐ ๋•Œ๋ฌธ์— ํŠนํžˆ ๋งˆ์ง„์ด๋‚˜ ํŒจ๋”ฉ์œผ๋กœ์˜ ์‚ฌ์šฉ์€ ์ง€์–‘ํ•˜๋Š” ๊ฑธ๋กœ ์•Œ๊ณ  ์žˆ๋Š”๋ฐ,
ํ˜น์‹œ % ๋‹จ์œ„๋กœ ๊ตฌํ˜„ํ•œ ์ด์œ ๊ฐ€ ๋”ฐ๋กœ ์žˆ์„๊นŒ์šฉ?! (๋งˆ์ง„, ํŒจ๋”ฉ ๊ฐ’์„ %๋กœ ์ค€ ๊ฑด ์•„๋‹ˆ์ง€๋งŒ !!)

Copy link
Owner Author

Choose a reason for hiding this comment

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

followList์˜ ์œ ์ € ๋ฆฌ์ŠคํŠธ ๋ถ€๋ถ„์ด ๋‚ด๋ถ€ ์Šคํฌ๋กค์ด ๋ ์ˆ˜ ์žˆ๋„๋ก ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ๊ณ ์ •๋œ ๋†’์ด ๊ฐ’์ด ํ•„์š”ํ–ˆ๋Š”๋ฐ์š”,
๋””์ž์ธ์ด ์—†๋Š” ์ƒํ™ฉ์—์„œ ํ”„๋กœํ•„ ์˜์—ญ๊ณผ ์œ ์ € ๋ฆฌ์ŠคํŠธ ์˜์—ญ์˜ ๊ณ ์ •๋œ ๋†’์ด ์ง€์ •์„ ์šฉ์ดํ•˜๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด %๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค!
๋”ฐ๋ผ์„œ ๋†’์ด์— %๋ฅผ ์‚ฌ์šฉํ•œ ๋ถ€๋ถ„์€ ๋ชจ๋‘ ์š” ๋†’์ด ์˜์—ญ ์ง€์ •์„ ์œ„ํ•œ ๋ถ€๋ถ„๋“ค์ž…๋‹ˆ๋‹ค!

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.

3 participants