logo by @sawaratsuki1004
React
v18.3.1
Belajar
Referensi
Komunitas
Blog

    react@18.3.1

  • Overview
  • Hooks
    • useActionState - This feature is available in the latest Canary
    • useCallback
    • useContext
    • useDebugValue
    • useDeferredValue
    • useEffect
    • useId
    • useImperativeHandle
    • useInsertionEffect
    • useLayoutEffect
    • useMemo
    • useOptimistic - This feature is available in the latest Canary
    • useReducer
    • useRef
    • useState
    • useSyncExternalStore
    • useTransition
  • Komponen
    • <Fragment> (<>)
    • <Profiler>
    • <StrictMode>
    • <Suspense>
  • API
    • act
    • cache - This feature is available in the latest Canary
    • createContext
    • forwardRef
    • lazy
    • memo
    • startTransition
    • use - This feature is available in the latest Canary
    • experimental_taintObjectReference - This feature is available in the latest Canary
    • experimental_taintUniqueValue - This feature is available in the latest Canary
  • react-dom@18.3.1

  • Hooks
    • useFormStatus - This feature is available in the latest Canary
  • Komponen
    • Umum (e.g. <div>)
    • <form> - This feature is available in the latest Canary
    • <input>
    • <option>
    • <progress>
    • <select>
    • <textarea>
    • <link> - This feature is available in the latest Canary
    • <meta> - This feature is available in the latest Canary
    • <script> - This feature is available in the latest Canary
    • <style> - This feature is available in the latest Canary
    • <title> - This feature is available in the latest Canary
  • API
    • createPortal
    • flushSync
    • findDOMNode
    • hydrate
    • preconnect - This feature is available in the latest Canary
    • prefetchDNS - This feature is available in the latest Canary
    • preinit - This feature is available in the latest Canary
    • preinitModule - This feature is available in the latest Canary
    • preload - This feature is available in the latest Canary
    • preloadModule - This feature is available in the latest Canary
    • render
    • unmountComponentAtNode
  • API Klien
    • createRoot
    • hydrateRoot
  • API Server
    • renderToNodeStream
    • renderToPipeableStream
    • renderToReadableStream
    • renderToStaticMarkup
    • renderToStaticNodeStream
    • renderToString
  • Peraturan React

  • Pengantar
    • Komponen dan Hooks harus murni
    • React memanggil Komponen dan Hooks
    • Peraturan Hooks
  • React Server Components

  • Server Components - This feature is available in the latest Canary
  • Server Actions - This feature is available in the latest Canary
  • Directives - This feature is available in the latest Canary
    • 'use client' - This feature is available in the latest Canary
    • 'use server' - This feature is available in the latest Canary
  • API Lama

  • API React Lama
    • Children
    • cloneElement
    • Component
    • createElement
    • createFactory
    • createRef
    • isValidElement
    • PureComponent

Apakah halaman ini berguna bagi Anda?

Referensi API

Directives - This feature is available in the latest Canary

Canary

These directives are needed only if you’re using React Server Components or building a library compatible with them.

Directives provide instructions to bundlers compatible with React Server Components.


Source code directives

  • 'use client' lets you mark what code runs on the client.
  • 'use server' marks server-side functions that can be called from client-side code.
SebelumnyaServer Actions
Selanjutnya'use client'

©2025
no uwu plz
uwu?
Logo by@sawaratsuki1004
Belajar React
Mulai Cepat
Pemasangan
Menggambarkan Antarmuka Pengguna (UI)
Menambahkan Interaktivitas
Mengelola State
Jalan Keluar
Referensi API
API React
API React DOM
Komunitas
Kode Etik
Mengenal Anggota Tim
Kontributor Dokumentasi
Ucapan Terima Kasih
Lebih Lengkap
Blog
React Native
Privasi
Persyaratan

Di halaman ini

  • Ikhtisar
  • Source code directives