17.0.1 • Published 4 years ago

react-dom-but-thai v17.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Powered by Electricity Build with Science Design in MS Paint Contains Cat Gif Work on my Machine You didn't ask for this

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.

Cat

See?