react-but-thai

React but it's Thai

Downloads
21
Stars
36
Committers
1

React but thai

React but it's Thai translated.

What

React but thai is React but it's Thai translated with the same modern API.

Intention

Because I can.

Why

Don't ask why, ask Why not.

When to use

When you want to.

How

Install it

yarn add react-but-thai react-dom-but-thai

// or with npm
npm install --save react-but-thai react-dom-but-thai

Then use the same API but it's translated.

Use ตอบสนอง instead of react use รูปแบบวัตถุเอกสารตอบสนอง insteand of react-dom

Example

import ตอบสนอง from 'react-but-thai'
import รูปแบบวัตถุเอกสารตอบสนอง from 'react-dom-but-thai'

import แอป from './index.js'

รูปแบบวัตถุเอกสารตอบสนอง.แสดงผล(แอป, document.body)

Demo

Repository For working demo

React API

Use ตอบสนอง instead of react

  • Fragment as ชิ้นส่วน
  • StrictMode as โหมดเข้มงวด
  • Profiler as ประวัติ
  • Suspense as ใจจดใจจ่อ
  • Children as เด็กหลายคน
  • Component as ส่วนประกอบ
  • PureComponent as ส่วนประกอบบริสุทธิ์
  • __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as __ความลับ_ภายใน_ห้าม_ไม่_ไม่_ใช้_หรือ_คุณ_จะ_ถูก_ไล่ออก
  • cloneElement as โคลนธาตุ
  • createContext as สร้างบริบท
  • createElement as สร้างธาตุ
  • createFactory as สร้างโรงงาน
  • createRef as สร้างเอกสารอ้างอิง
  • forwardRef as ส่งต่อเอกสารอ้างอิง
  • isValidElement as เป็นธาตุที่ถูกต้อง
  • lazy as ขี้เกียจ
  • memo as บันทึก
  • useCallback as ใช้โทรกลับ
  • useContext as ใช้บริบท
  • useDebugValue as ใช้ค่าแก้จุดบกพร่อง
  • useEffect as ใช้ผลกระทบ
  • useImperativeHandle as ใช้การรับมือจำเป็น
  • useLayoutEffect as ใช้ผลกระทบเค้าโครง
  • useRef as ใช้เอกสารอ้างอิง
  • useState as ใช้สถานะ
  • version as เวอร์ชั่น

React DOM API

use รูปแบบวัตถุเอกสารตอบสนอง insteand of react-dom

  • __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as __ความลับ_ภายใน_ห้าม_ไม่_ไม่_ใช้_หรือ_คุณ_จะ_ถูก_ไล่ออก
  • createPortal as สร้างทางเชื่อม
  • findDOMNode as หาโหนดรูปแบบวัตถุเอกสาร
  • flushSync as ล้่างพร้อมกัน
  • hydrate as ชุ่มชื้น
  • render as แสดงผล
  • unmountComponentAtNode as ยกเลิกการเชื่อต่อส่วนประกอบที่โหนด
  • unstable_batchedUpdates as อัพเดทเป็นชุดแบบไม่เสถียร์
  • unstable_createPortal as สร้างทางเชื่อมแบบไม่เสถียร์
  • unstable_renderSubtreeIntoContainer as แสดงต้นไม้ย่อยเข้าไปในภาชนะแบบไม่เสถียร์

Why should I use this

Because this contains cat gif but React doesn't not.

See?