Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/content/reference/react/apis.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: "Built-in React APIs"
title: "API ທີ່ມີໃຫ້ໃນ React"
---

<Intro>

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 ທີ່ເຫຼືອ.

</Intro>

---

* [`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)
18 changes: 9 additions & 9 deletions src/content/reference/react/components.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
title: "Built-in React Components"
title: "Component ທີ່ມີໃຫ້ໃນ React"
---

<Intro>

React exposes a few built-in components that you can use in your JSX.
React ມີ component ພື້ນຖານບາງຢ່າງໃຫ້ທ່ານນຳໄປໃຊ້ໃນ JSX ໄດ້.

</Intro>

---

## Built-in components {/*built-in-components*/}
## Component ພື້ນຖານ {/*built-in-components*/}

* [`<Fragment>`](/reference/react/Fragment), alternatively written as `<>...</>`, lets you group multiple JSX nodes together.
* [`<Profiler>`](/reference/react/Profiler) lets you measure rendering performance of a React tree programmatically.
* [`<Suspense>`](/reference/react/Suspense) lets you display a fallback while the child components are loading.
* [`<StrictMode>`](/reference/react/StrictMode) enables extra development-only checks that help you find bugs early.
* [`<Fragment>`](/reference/react/Fragment) ຫຼືຂຽນແບບຫຍໍ້ວ່າ `<>...</>` ຊ່ວຍຈັດກຸ່ມ JSX node ຫຼາຍອັນເຂົ້າດ້ວຍກັນ.
* [`<Profiler>`](/reference/react/Profiler) ຊ່ວຍວັດປະສິດທິພາບການ render ຂອງ React tree ຜ່ານ code.
* [`<Suspense>`](/reference/react/Suspense) ຊ່ວຍສະແດງ UI ສຳຮອງລະຫວ່າງທີ່ component ລູກກຳລັງໂຫຼດ.
* [`<StrictMode>`](/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.
31 changes: 16 additions & 15 deletions src/content/reference/react/index.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
---
title: React Reference Overview
title: ພາບລວມຄູ່ມືອ້າງອີງ React
---

<Intro>
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) ກ່ອນ.

</Intro>

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 ທີ່ຂຽນຂຶ້ນໃໝ່.
Loading