Tue Ukrainaa 🇺🇦
🇺🇦
Auta toimittamaan humanitaarista apua Ukrainalle.
React
Opettele
Viite
Yhteisö
Blogi

    react@18.2.0

  • Hookit
    • use This feature is available in the latest Canary
    • useCallback
    • useContext
    • useDebugValue
    • useDeferredValue
    • useEffect
    • useId
    • useImperativeHandle
    • useInsertionEffect
    • useLayoutEffect
    • useMemo
    • useReducer
    • useRef
    • useState
    • useSyncExternalStore
    • useTransition
  • Komponentit
    • <Fragment> (<>)
    • <Profiler>
    • <StrictMode>
    • <Suspense>
  • APIt
    • cache This feature is available in the latest Canary
    • createContext
    • forwardRef
    • lazy
    • memo
    • startTransition
  • Direktiivit 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
  • react-dom@18.2.0

  • Komponentit
    • Yleiset (esim <div>)
    • <input>
    • <option>
    • <progress>
    • <select>
    • <textarea>
  • APIt
    • createPortal
    • flushSync
    • findDOMNode
    • hydrate
    • render
    • unmountComponentAtNode
  • Asiakaspuolen APIt
    • createRoot
    • hydrateRoot
  • Palvelinpuolen APIt
    • renderToNodeStream
    • renderToPipeableStream
    • renderToReadableStream
    • renderToStaticMarkup
    • renderToStaticNodeStream
    • renderToString
  • Vanhemmat APIt

  • Vanhemmat React APIt
    • Children
    • cloneElement
    • Component
    • createElement
    • createFactory
    • createRef
    • isValidElement
    • PureComponent

Onko tämä sivu hyödyllinen?

API viite

DirectivesThis 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' marks source files whose components execute on the client.
  • 'use server' marks server-side functions that can be called from client-side code.
PreviousstartTransitionNext'use client'

How do you like these docs?

Take our survey!

©2023
Opettele Reactia
Pika-aloitus
Asennus
Käyttöliittymän kuvaus
Interaktiivisuuden lisääminen
Tilan hallinta
Pelastusluukut
API viite
React APIt
React DOM APIt
Yhteisö
Toimintaohjeet
Meet the Team
Dokumentaation kehittäjät
Tunnustukset
Lisää
Blogi
React Native
Yksityisyys
Ehdot

Tällä sivulla

  • Overview
  • Source code directives