Skip to content

Commit ca6492e

Browse files
committed
feat: add links to legacy react@18 korean translation documentation
1 parent 6c82101 commit ca6492e

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

src/components/Layout/HomeContent.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ export function HomeContent() {
164164
label="API Reference">
165165
API 참고서
166166
</ButtonLink>
167+
<ButtonLink
168+
href={'https://ko-react-exy5xcwjj-fbopensource.vercel.app/'}
169+
type="secondary"
170+
size="lg"
171+
className="w-full sm:w-auto justify-center"
172+
label="API Reference">
173+
React v18 한글
174+
</ButtonLink>
167175
</div>
168176
</div>
169177

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ declare global {
3535
}
3636
}
3737

38+
const react18Icon = (
39+
<svg
40+
stroke="currentColor"
41+
fill="none"
42+
strokeWidth="2"
43+
viewBox="0 0 24 24"
44+
strokeLinecap="round"
45+
strokeLinejoin="round"
46+
height="200px"
47+
width="200px"
48+
xmlns="http://www.w3.org/2000/svg">
49+
<path d="M8 8h1v8"></path>
50+
<path d="M15 12h-1a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1zh-1a1 1 0 0 0 -1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1"></path>
51+
</svg>
52+
);
53+
3854
const darkIcon = (
3955
<svg
4056
xmlns="http://www.w3.org/2000/svg"
@@ -346,6 +362,14 @@ export default function TopNav({
346362
<IconSearch className="w-5 h-5 align-middle" />
347363
</button>
348364
</div>
365+
<div className="flex">
366+
<Link
367+
href="https://ko-react-exy5xcwjj-fbopensource.vercel.app/"
368+
aria-label="React version 18 Korean translation"
369+
className="active:scale-95 transition-transform flex w-12 h-12 rounded-full items-center justify-center hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link">
370+
{react18Icon}
371+
</Link>
372+
</div>
349373
<div className="flex dark:hidden">
350374
<button
351375
type="button"

src/content/reference/react/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ React는 JSX에서 사용할 수 있는 몇 가지 내장 컴포넌트를 제공
1414

1515
* [`<Fragment>`](/reference/react/Fragment) 또는 `<>...</>` 로 표기하며, 여러 JSX 노드를 함께 그룹화할 수 있습니다.
1616
* [`<Profiler>`](/reference/react/Profiler)를 통해 React 트리의 렌더링 성능을 프로그래밍 방식으로 측정할 수 있습니다.
17-
* [`<Suspense>`](/reference/react/Suspense)를 통해 자식 컴포넌트를 로딩하는 동안 Fallback을 표시할 수 있습니다.
1817
* [`<StrictMode>`](/reference/react/StrictMode)를 통해 초기에 버그를 찾는 데 도움이 되는 추가 개발 전용 검사를 사용할 수 있습니다.
18+
* [`<Suspense>`](/reference/react/Suspense)를 통해 자식 컴포넌트를 로딩하는 동안 Fallback을 표시할 수 있습니다.
1919

2020
---
2121

src/content/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ title: React 버전
1818

1919
## 이전 버전 {/*previous-versions*/}
2020

21-
- [18.react.dev](https://18.react.dev) {/*docs-18*/}
21+
- [18.react.dev](https://18.react.dev) {/*docs-18*/} ([React v18 한글](https://ko-react-exy5xcwjj-fbopensource.vercel.app/))
2222
- [17.react.dev](https://17.react.dev) {/*docs-17*/}
2323
- [16.react.dev](https://16.react.dev) {/*docs-16*/}
2424
- [15.react.dev](https://15.react.dev) {/*docs-15*/}

0 commit comments

Comments
 (0)