Home / Function/ useFragment() — react Function Reference

useFragment() — react Function Reference

Architecture documentation for the useFragment() function in destructuring-mixed-scope-and-local-variables-with-default.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  109e89a7_ca23_36c1_2f1d_3453059ca456["useFragment()"]
  4a225197_281a_417a_1d6c_72712670e704["destructuring-mixed-scope-and-local-variables-with-default.js"]
  109e89a7_ca23_36c1_2f1d_3453059ca456 -->|defined in| 4a225197_281a_417a_1d6c_72712670e704
  b4cd7bad_7282_7a21_2c9b_ca6789b7e606["Component()"]
  b4cd7bad_7282_7a21_2c9b_ca6789b7e606 -->|calls| 109e89a7_ca23_36c1_2f1d_3453059ca456
  style 109e89a7_ca23_36c1_2f1d_3453059ca456 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/destructuring-mixed-scope-and-local-variables-with-default.js lines 3–9

function useFragment(_arg1, _arg2) {
  'use no forget';
  return {
    urls: ['url1', 'url2', 'url3'],
    comments: ['comment1'],
  };
}

Subdomains

Called By

Frequently Asked Questions

What does useFragment() do?
useFragment() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/destructuring-mixed-scope-and-local-variables-with-default.js.
Where is useFragment() defined?
useFragment() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/destructuring-mixed-scope-and-local-variables-with-default.js at line 3.
What calls useFragment()?
useFragment() is called by 1 function(s): Component.

Analyze Your Own Codebase

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

Try Supermodel Free