Stream React Conf on May 15-16.
Learn more.
logo by @sawaratsuki1004
React
v18.3.1
Aprenda
Referência
Comunidade
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
  • Componentes
    • <Fragment> (<>)
    • <Profiler>
    • <StrictMode>
    • <Suspense>
  • APIs
    • 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
  • Components
    • Common (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
  • APIs
    • 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
  • APIs do Cliente
    • createRoot
    • hydrateRoot
  • APIs do Servidor
    • renderToNodeStream
    • renderToPipeableStream
    • renderToReadableStream
    • renderToStaticMarkup
    • renderToStaticNodeStream
    • renderToString
  • Rules of React

  • Overview
    • Components and Hooks must be pure
    • React calls Components and Hooks
    • Rules of 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
  • APIs Legadas

  • APIs Legadas do React
    • Children
    • cloneElement
    • Component
    • createElement
    • createFactory
    • createRef
    • isValidElement
    • PureComponent

Is this page useful?

API de Referência

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.
PreviousServer Actions
Next'use client'

©2024
no uwu plz
uwu?
Logo by@sawaratsuki1004
Aprenda React
Início Rápido
Instalação
Descrevendo a UI
Adicionando Interatividade
Gerenciamento de estado
Saídas de Emergência
API Reference
APIs do React
APIs do React DOM
Comunidade
Código de Conduta
Conheça o Time
Contribuidores da Documentação
Agradecimentos
Mais
Blog
React Native
Privacidade
Termos

On this page

  • Overview
  • Source code directives