Support Ukraine ๐Ÿ‡บ๐Ÿ‡ฆ
๐Ÿ‡บ๐Ÿ‡ฆ
Help Provide Humanitarian Aid to Ukraine.
React
ํ•™์Šตํ•˜๊ธฐ
๋ ˆํผ๋Ÿฐ์Šค
์ปค๋ฎค๋‹ˆํ‹ฐ
๋ธ”๋กœ๊ทธ

    react@18.2.0

  • Hook
    • useCallback
    • useContext
    • useDebugValue
    • useDeferredValue
    • useEffect
    • useId
    • useImperativeHandle
    • useInsertionEffect
    • useLayoutEffect
    • useMemo
    • useReducer
    • useRef
    • useState
    • useSyncExternalStore
    • useTransition
  • ์ปดํฌ๋„ŒํŠธ
    • <Fragment> (<>)
    • <Profiler>
    • <StrictMode>
    • <Suspense>
  • API
    • createContext
    • forwardRef
    • lazy
    • memo
    • startTransition
  • Directives
    • 'use client'
    • 'use server'
  • react-dom@18.2.0

  • ์ปดํฌ๋„ŒํŠธ
    • Common (e.g. <div>)
    • <input>
    • <option>
    • <progress>
    • <select>
    • <textarea>
  • API
    • createPortal
    • flushSync
    • findDOMNode
    • hydrate
    • render
    • unmountComponentAtNode
  • ํด๋ผ์ด์–ธํŠธ API
    • createRoot
    • hydrateRoot
  • ์„œ๋ฒ„ API
    • renderToNodeStream
    • renderToPipeableStream
    • renderToReadableStream
    • renderToStaticMarkup
    • renderToStaticNodeStream
    • renderToString
  • ๋ ˆ๊ฑฐ์‹œ API

  • ๋ ˆ๊ฑฐ์‹œ React API
    • Children
    • cloneElement
    • Component
    • createElement
    • createFactory
    • createRef
    • isValidElement
    • PureComponent

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?

API ๋ ˆํผ๋Ÿฐ์Šค

Directives

React uses two directives to 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.
์ด์ „startTransition๋‹ค์Œ'use client'

์ด ๋ฌธ์„œ๊ฐ€ ๋งˆ์Œ์— ๋“œ์‹œ๋‚˜์š”?

์„ค๋ฌธ์กฐ์‚ฌ์— ์ฐธ์—ฌํ•˜์„ธ์š”!

ยฉ2023
React ํ•™์Šตํ•˜๊ธฐ
๋น ๋ฅด๊ฒŒ ์‹œ์ž‘ํ•˜๊ธฐ
์„ค์น˜ํ•˜๊ธฐ
UI ํ‘œํ˜„ํ•˜๊ธฐ
์ƒํ˜ธ์ž‘์šฉ์„ฑ ๋”ํ•˜๊ธฐ
State ๊ด€๋ฆฌํ•˜๊ธฐ
Escape Hatches
API ์ฐธ๊ณ ์„œ
React APIs
React DOM APIs
์ปค๋ฎค๋‹ˆํ‹ฐ
Code of Conduct
ํŒ€ ์†Œ๊ฐœ
๋ฌธ์„œ ๊ธฐ์—ฌ์ž
๊ฐ์‚ฌ์˜ ๋ง
๋” ๋ณด๊ธฐ
๋ธ”๋กœ๊ทธ
React Native
๊ฐœ์ธ ์ •๋ณด ๋ณดํ˜ธ
์•ฝ๊ด€

On this page

  • Overview
  • Source code directives