과제는 Props Drilling → Context API → Redux 순으로 각각 별도의 브랜치를 만들어 제출해야 합니다.
props-drilling 브랜치에서는 context나 redux 없이 useState만으로 상태관리해서 코드를 작성합니다.
context 브랜치에서는 props-drilling으로 작업한 코드에서 react context API를 사용하여 전역상태를 이용한 코드로 리팩터링합니다
redux 브랜치에서는 context api로 전역상태를 관리한 코드를 모두 redux 라이브러리를 이용한 코드로 리팩터링합니다.

그러하다
export const fanPageRoute = createBrowserRouter([
{
element: <Layout />,
children: [
{
path: "/member/",
element: (
<ReduxProvider>
<PageMember />
</ReduxProvider>
),
children: [
{
path: ":name",
element: null
},
{
path: ":name/:letterId",
element: <LetterDetailPage />
}
]
},
{ path: "/music", element: <>music</> }
]
}
]);
공통 레이아웃 밑에 member에서 팬레터를 보낼 수 있도록 짜뒀다.
home페이지는 제작 예정 뮤직도 그러하다.