Доєднуйтеся 7-8 жовтня до React Conf.
Детальніше.
лого від @sawaratsuki1004
React
v19.1
Вивчення
Довідник
Спільнота
Блог

    react@19.1

  • Вступ
  • Хуки
    • useActionState
    • useCallback
    • useContext
    • useDebugValue
    • useDeferredValue
    • useEffect
    • useId
    • useImperativeHandle
    • useInsertionEffect
    • useLayoutEffect
    • useMemo
    • useOptimistic
    • useReducer
    • useRef
    • useState
    • useSyncExternalStore
    • useTransition
  • Компоненти
    • <Fragment> (<>)
    • <Profiler>
    • <StrictMode>
    • <Suspense>
  • API
    • act
    • cache
    • captureOwnerStack
    • createContext
    • lazy
    • memo
    • startTransition
    • use
    • experimental_taintObjectReference - ця функція доступна в останній canary-версії
    • experimental_taintUniqueValue - ця функція доступна в останній canary-версії
  • react-dom@19.1

  • Хуки
    • useFormStatus
  • Компоненти
    • Common (e.g. <div>)
    • <form>
    • <input>
    • <option>
    • <progress>
    • <select>
    • <textarea>
    • <link>
    • <meta>
    • <script>
    • <style>
    • <title>
  • API
    • createPortal
    • flushSync
    • preconnect
    • prefetchDNS
    • preinit
    • preinitModule
    • preload
    • preloadModule
  • Клієнтські API
    • createRoot
    • hydrateRoot
  • Серверні API
    • renderToPipeableStream
    • renderToReadableStream
    • renderToStaticMarkup
    • renderToString
  • Статичні API
    • prerender
    • prerenderToNodeStream
  • Правила React

  • Вступ
    • Components and Hooks must be pure
    • React calls Components and Hooks
    • Rules of Hooks
  • Серверні компоненти React

  • Server Components
  • Server Functions
  • Directives
    • 'use client'
    • 'use server'
  • Спадкові API

  • Спадкові API в React
    • Children
    • cloneElement
    • Component
    • createElement
    • createRef
    • forwardRef
    • isValidElement
    • PureComponent

Ця сторінка корисна?

Довідник API

Directives

Серверні компоненти React

Directives are for use in React Server Components.

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.
ПопередняServer Functions
Наступна'use client'

Copyright © Meta Platforms, Inc
без uwu, будь ласка
uwu?
Лого від@sawaratsuki1004
Вивчення React
Швидкий старт
Встановлення
Написання UI
Додавання інтерактивності
Managing State
Escape Hatches
Довідник API
React: API
React DOM: API
Спільнота
Кодекс поведінки
Команда React
Автори документації
Подяки
Більше
Блог
React Native
Політика конфіденційності
Умови використання

На цій сторінці

  • Overview
  • Source code directives