Home / File/ index.experimental.development.js — react Source File

index.experimental.development.js — react Source File

Architecture documentation for index.experimental.development.js, a javascript file in the react codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  9a35b779_58e1_4b99_878b_38ff837c35cb["index.experimental.development.js"]
  ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5["ReactClient.js"]
  9a35b779_58e1_4b99_878b_38ff837c35cb --> ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5
  style 9a35b779_58e1_4b99_878b_38ff837c35cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

export {
  __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  __COMPILER_RUNTIME,
  Children,
  Component,
  Fragment,
  Profiler,
  PureComponent,
  StrictMode,
  Suspense,
  cloneElement,
  createContext,
  createElement,
  createRef,
  use,
  forwardRef,
  isValidElement,
  lazy,
  memo,
  cache,
  cacheSignal,
  startTransition,
  optimisticKey,
  Activity,
  unstable_getCacheForType,
  unstable_SuspenseList,
  ViewTransition,
  unstable_startGestureTransition,
  addTransitionType,
  unstable_useCacheRefresh,
  useId,
  useCallback,
  useContext,
  useDebugValue,
  useDeferredValue,
  useEffect,
  useEffectEvent,
  useImperativeHandle,
  useInsertionEffect,
  useLayoutEffect,
  useMemo,
  useOptimistic,
  useReducer,
  useRef,
  useState,
  useSyncExternalStore,
  useTransition,
  useActionState,
  version,
  act, // DEV-only
  captureOwnerStack, // DEV-only
} from './src/ReactClient';

import {useOptimistic} from './src/ReactClient';

export function experimental_useOptimistic<S, A>(
  passthrough: S,
  reducer: ?(S, A) => S,
): [S, (A) => void] {
  if (__DEV__) {
    console.error(
      'useOptimistic is now in canary. Remove the experimental_ prefix. ' +
        'The prefixed alias will be removed in an upcoming release.',
    );
  }
  return useOptimistic(passthrough, reducer);
}

Domain

Dependencies

Frequently Asked Questions

What does index.experimental.development.js do?
index.experimental.development.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does index.experimental.development.js depend on?
index.experimental.development.js imports 1 module(s): ReactClient.js.
Where is index.experimental.development.js in the architecture?
index.experimental.development.js is located at packages/react/index.experimental.development.js (domain: BabelCompiler, directory: packages/react).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free