Home / File/ fbt-preserve-whitespace-subtree.tsx — react Source File

fbt-preserve-whitespace-subtree.tsx — react Source File

Architecture documentation for fbt-preserve-whitespace-subtree.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.

File tsx TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  6e37baa4_3e0e_14ce_6de4_6ce51d2a2448["fbt-preserve-whitespace-subtree.tsx"]
  2db15464_200a_540f_8671_b62de113ab09["fbt"]
  6e37baa4_3e0e_14ce_6de4_6ce51d2a2448 --> 2db15464_200a_540f_8671_b62de113ab09
  style 6e37baa4_3e0e_14ce_6de4_6ce51d2a2448 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import fbt from 'fbt';

/**
 * Note that fbt whitespace rules apply to the entire fbt subtree,
 * not just direct children of fbt elements.
 * (e.g. here, the JSXText children of the span element also use
 * fbt whitespace rules)
 */

function Foo(props) {
  return (
    <fbt desc={'Dialog to show to user'}>
      <span key={props.name}>
        <fbt:param name="user name really long description for prettier">
          {props.name}
        </fbt:param>
        !
      </span>
    </fbt>
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{name: 'Jason'}],
};

Subdomains

Functions

Dependencies

  • fbt

Frequently Asked Questions

What does fbt-preserve-whitespace-subtree.tsx do?
fbt-preserve-whitespace-subtree.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in fbt-preserve-whitespace-subtree.tsx?
fbt-preserve-whitespace-subtree.tsx defines 1 function(s): Foo.
What does fbt-preserve-whitespace-subtree.tsx depend on?
fbt-preserve-whitespace-subtree.tsx imports 1 module(s): fbt.
Where is fbt-preserve-whitespace-subtree.tsx in the architecture?
fbt-preserve-whitespace-subtree.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/fbt-preserve-whitespace-subtree.tsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt).

Analyze Your Own Codebase

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

Try Supermodel Free