лого від @sawaratsuki1004
React
v19.2
Вивчення
Довідник
Спільнота
Блог

    react@19.2

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

  • Хуки
    • 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
    • resume
    • resumeToPipeableStream
  • Статичні API
    • prerender
    • prerenderToNodeStream
    • resumeAndPrerender
    • resumeAndPrerenderToNodeStream
  • React Compiler

  • Configuration
    • compilationMode
    • gating
    • logger
    • panicThreshold
    • target
  • Directives
    • "use memo"
    • "use no memo"
  • Compiling Libraries
  • React DevTools

  • React Performance tracks
  • eslint-plugin-react-hooks

  • Lints
    • exhaustive-deps
    • rules-of-hooks
    • component-hook-factories
    • config
    • error-boundaries
    • gating
    • globals
    • immutability
    • incompatible-library
    • preserve-manual-memoization
    • purity
    • refs
    • set-state-in-effect
    • set-state-in-render
    • static-components
    • unsupported-syntax
    • use-memo
  • Правила 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
Політика конфіденційності
Умови використання

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

  • Вступ
  • Source code directives