From 567cad2649a55d475dca182961ef2c361558f033 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:20:11 +0700 Subject: [PATCH 1/4] docs(lo): translate index React reference page --- src/content/reference/react/index.md | 31 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/content/reference/react/index.md b/src/content/reference/react/index.md index ef6449247..1fcbd13b4 100644 --- a/src/content/reference/react/index.md +++ b/src/content/reference/react/index.md @@ -1,33 +1,34 @@ --- -title: React Reference Overview +title: ພາບລວມຄູ່ມືອ້າງອີງ React --- -This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section. + +ພາກນີ້ເປັນຄູ່ມືອ້າງອີງທີ່ອະທິບາຍລາຍລະອຽດການໃຊ້ງານ React. ຖ້າທ່ານຫາກໍເລີ່ມຮຽນ React, ຂໍແນະນຳໃຫ້ອ່ານພາກ [ຮຽນຮູ້ React](/learn) ກ່ອນ. -Our The React reference documentation is broken down into functional subsections: +ຄູ່ມືອ້າງອີງ React ແບ່ງອອກເປັນຫົວຂໍ້ຕາມການໃຊ້ງານດັ່ງນີ້: ## React {/*react*/} -Programmatic React features: +ຄວາມສາມາດຂອງ React ທີ່ສາມາດໃຊ້ຜ່ານ code: -* [Hooks](/reference/react/hooks) - Use different React features from your components. -* [Components](/reference/react/components) - Documents built-in components that you can use in your JSX. -* [APIs](/reference/react/apis) - APIs that are useful for defining components. -* [Directives](/reference/react/directives) - Provide instructions to bundlers compatible with React Server Components. +* [Hooks](/reference/react/hooks) - ຊ່ວຍໃຫ້ component ຂອງທ່ານໃຊ້ຄວາມສາມາດຕ່າງໆ ຂອງ React. +* [Components](/reference/react/components) - ອະທິບາຍ component ທີ່ React ມີໃຫ້ ແລະ ສາມາດນຳໄປໃຊ້ໃນ JSX ໄດ້. +* [APIs](/reference/react/apis) - API ທີ່ຊ່ວຍໃນການສ້າງ ແລະ ກຳນົດ component. +* [Directives](/reference/react/directives) - ຄຳສັ່ງສຳລັບ bundler ທີ່ຮອງຮັບ React Server Components. ## React DOM {/*react-dom*/} -React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: +React DOM ມີຄວາມສາມາດທີ່ໃຊ້ໄດ້ສະເພາະກັບແອັບເວັບທີ່ເຮັດວຽກໃນສະພາບແວດລ້ອມ DOM ຂອງ browser. ພາກນີ້ແບ່ງອອກເປັນ: -* [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment. -* [Components](/reference/react-dom/components) - React supports all of the browser built-in HTML and SVG components. -* [APIs](/reference/react-dom) - The `react-dom` package contains methods supported only in web applications. -* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser). -* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server. +* [Hooks](/reference/react-dom/hooks) - Hooks ສຳລັບແອັບເວັບທີ່ເຮັດວຽກໃນ DOM ຂອງ browser. +* [Components](/reference/react-dom/components) - React ຮອງຮັບ HTML ແລະ SVG component ທີ່ browser ມີໃຫ້. +* [APIs](/reference/react-dom) - ວິທີການຕ່າງໆ ໃນ package `react-dom` ທີ່ໃຊ້ໄດ້ສະເພາະໃນແອັບເວັບ. +* [Client APIs](/reference/react-dom/client) - API ຈາກ `react-dom/client` ສຳລັບ render React component ຢູ່ຝັ່ງ client (ໃນ browser). +* [Server APIs](/reference/react-dom/server) - API ຈາກ `react-dom/server` ສຳລັບ render React component ເປັນ HTML ຢູ່ຝັ່ງ server. ## Legacy APIs {/*legacy-apis*/} -* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code. +* [Legacy APIs](/reference/react/legacy) - API ທີ່ export ຈາກ package `react` ແຕ່ບໍ່ແນະນຳໃຫ້ໃຊ້ໃນ code ທີ່ຂຽນຂຶ້ນໃໝ່. From 97fbc2dcc7d1cee560db60b0585fdf4938611b2f Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:20:14 +0700 Subject: [PATCH 2/4] docs(lo): translate components React reference page --- src/content/reference/react/components.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/content/reference/react/components.md b/src/content/reference/react/components.md index 7ce3fab63..4c7ad4dfc 100644 --- a/src/content/reference/react/components.md +++ b/src/content/reference/react/components.md @@ -1,24 +1,24 @@ --- -title: "Built-in React Components" +title: "Component ທີ່ມີໃຫ້ໃນ React" --- -React exposes a few built-in components that you can use in your JSX. +React ມີ component ພື້ນຖານບາງຢ່າງໃຫ້ທ່ານນຳໄປໃຊ້ໃນ JSX ໄດ້. --- -## Built-in components {/*built-in-components*/} +## Component ພື້ນຖານ {/*built-in-components*/} -* [``](/reference/react/Fragment), alternatively written as `<>...`, lets you group multiple JSX nodes together. -* [``](/reference/react/Profiler) lets you measure rendering performance of a React tree programmatically. -* [``](/reference/react/Suspense) lets you display a fallback while the child components are loading. -* [``](/reference/react/StrictMode) enables extra development-only checks that help you find bugs early. +* [``](/reference/react/Fragment) ຫຼືຂຽນແບບຫຍໍ້ວ່າ `<>...` ຊ່ວຍຈັດກຸ່ມ JSX node ຫຼາຍອັນເຂົ້າດ້ວຍກັນ. +* [``](/reference/react/Profiler) ຊ່ວຍວັດປະສິດທິພາບການ render ຂອງ React tree ຜ່ານ code. +* [``](/reference/react/Suspense) ຊ່ວຍສະແດງ UI ສຳຮອງລະຫວ່າງທີ່ component ລູກກຳລັງໂຫຼດ. +* [``](/reference/react/StrictMode) ເປີດການກວດສອບເພີ່ມເຕີມໃນຂະນະພັດທະນາ ເພື່ອຊ່ວຍຄົ້ນພົບ bug ໄດ້ໄວຂຶ້ນ. --- -## Your own components {/*your-own-components*/} +## Component ທີ່ທ່ານສ້າງເອງ {/*your-own-components*/} -You can also [define your own components](/learn/your-first-component) as JavaScript functions. +ທ່ານຍັງສາມາດ [ສ້າງ component ຂອງທ່ານເອງ](/learn/your-first-component) ໂດຍໃຊ້ JavaScript function. From 7ef68f52bdedf4f3dcdab47de420cfa44037ef2f Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:20:17 +0700 Subject: [PATCH 3/4] docs(lo): translate apis React reference page --- src/content/reference/react/apis.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/content/reference/react/apis.md b/src/content/reference/react/apis.md index 9c1437870..2f4f9051a 100644 --- a/src/content/reference/react/apis.md +++ b/src/content/reference/react/apis.md @@ -1,17 +1,17 @@ --- -title: "Built-in React APIs" +title: "API ທີ່ມີໃຫ້ໃນ React" --- -In addition to [Hooks](/reference/react) and [Components](/reference/react/components), the `react` package exports a few other APIs that are useful for defining components. This page lists all the remaining modern React APIs. +ນອກຈາກ [Hooks](/reference/react) ແລະ [Components](/reference/react/components) ແລ້ວ package `react` ຍັງ export API ອື່ນໆ ທີ່ມີປະໂຫຍດຕໍ່ການສ້າງ component. ໜ້ານີ້ລວບລວມ API ສະໄໝໃໝ່ຂອງ React ທີ່ເຫຼືອ. --- -* [`createContext`](/reference/react/createContext) lets you define and provide context to the child components. Used with [`useContext`.](/reference/react/useContext) -* [`forwardRef`](/reference/react/forwardRef) lets your component expose a DOM node as a ref to the parent. Used with [`useRef`.](/reference/react/useRef) -* [`lazy`](/reference/react/lazy) lets you defer loading a component's code until it's rendered for the first time. -* [`memo`](/reference/react/memo) lets your component skip re-renders with same props. Used with [`useMemo`](/reference/react/useMemo) and [`useCallback`.](/reference/react/useCallback) -* [`startTransition`](/reference/react/startTransition) lets you mark a state update as non-urgent. Similar to [`useTransition`.](/reference/react/useTransition) +* [`createContext`](/reference/react/createContext) ຊ່ວຍກຳນົດ context ແລະ ສົ່ງຂໍ້ມູນໃຫ້ component ລູກ. ໃຊ້ຄູ່ກັບ [`useContext`.](/reference/react/useContext) +* [`forwardRef`](/reference/react/forwardRef) ຊ່ວຍໃຫ້ component ສົ່ງ DOM node ຜ່ານ ref ໄປໃຫ້ component ແມ່. ໃຊ້ຄູ່ກັບ [`useRef`.](/reference/react/useRef) +* [`lazy`](/reference/react/lazy) ຊ່ວຍເລື່ອນການໂຫຼດ code ຂອງ component ຈົນກວ່າ component ນັ້ນຈະຖືກ render ຄັ້ງທຳອິດ. +* [`memo`](/reference/react/memo) ຊ່ວຍໃຫ້ component ຂ້າມການ render ຊ້ຳເມື່ອ props ບໍ່ປ່ຽນແປງ. ໃຊ້ຄູ່ກັບ [`useMemo`](/reference/react/useMemo) ແລະ [`useCallback`.](/reference/react/useCallback) +* [`startTransition`](/reference/react/startTransition) ຊ່ວຍລະບຸວ່າການອັບເດດ state ນັ້ນບໍ່ແມ່ນວຽກເລັ່ງດ່ວນ. ມີລັກສະນະຄ້າຍກັບ [`useTransition`.](/reference/react/useTransition) From a79fe4bbd2a6ec54f51d8beb09b1078ba13d7bdb Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:29:32 +0700 Subject: [PATCH 4/4] docs(lo): refine introduction wording --- src/content/reference/react/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/index.md b/src/content/reference/react/index.md index 1fcbd13b4..10d2b8355 100644 --- a/src/content/reference/react/index.md +++ b/src/content/reference/react/index.md @@ -4,7 +4,7 @@ title: ພາບລວມຄູ່ມືອ້າງອີງ React -ພາກນີ້ເປັນຄູ່ມືອ້າງອີງທີ່ອະທິບາຍລາຍລະອຽດການໃຊ້ງານ React. ຖ້າທ່ານຫາກໍເລີ່ມຮຽນ React, ຂໍແນະນຳໃຫ້ອ່ານພາກ [ຮຽນຮູ້ React](/learn) ກ່ອນ. +ພາກນີ້ເປັນຄູ່ມືອ້າງອີງທີ່ອະທິບາຍລາຍລະອຽດການໃຊ້ງານ React. ຖ້າທ່ານຫາກໍ່ເລີ່ມຮຽນ React, ຂໍແນະນຳໃຫ້ອ່ານພາກ [ຮຽນຮູ້ React](/learn) ກ່ອນ.