Home / File/ fbt-param-with-leading-whitespace.js — react Source File

fbt-param-with-leading-whitespace.js — react Source File

Architecture documentation for fbt-param-with-leading-whitespace.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript TestingUtilities Fixtures 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ca663466_19dc_766d_7698_8c21b6ac5fc0["fbt-param-with-leading-whitespace.js"]
  2db15464_200a_540f_8671_b62de113ab09["fbt"]
  ca663466_19dc_766d_7698_8c21b6ac5fc0 --> 2db15464_200a_540f_8671_b62de113ab09
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  ca663466_19dc_766d_7698_8c21b6ac5fc0 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style ca663466_19dc_766d_7698_8c21b6ac5fc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import fbt from 'fbt';
import {identity} from 'shared-runtime';

function Component(props) {
  return (
    <span>
      <fbt desc="Title">
        <fbt:plural count={identity(props.count)} name="count" showCount="yes">
          vote
        </fbt:plural>{' '}
        for <fbt:param name="option"> {props.option}</fbt:param>
      </fbt>
      !
    </span>
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{count: 42, option: 'thing'}],
  sequentialRenders: [
    {count: 42, option: 'thing'},
    {count: 42, option: 'thing'},
    {count: 1, option: 'other'},
    {count: 1, option: 'other'},
    {count: 42, option: 'thing'},
    {count: 1, option: 'other'},
    {count: 42, option: 'thing'},
    {count: 1, option: 'other'},
  ],
};

Subdomains

Functions

Dependencies

  • fbt
  • shared-runtime

Frequently Asked Questions

What does fbt-param-with-leading-whitespace.js do?
fbt-param-with-leading-whitespace.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in fbt-param-with-leading-whitespace.js?
fbt-param-with-leading-whitespace.js defines 1 function(s): Component.
What does fbt-param-with-leading-whitespace.js depend on?
fbt-param-with-leading-whitespace.js imports 2 module(s): fbt, shared-runtime.
Where is fbt-param-with-leading-whitespace.js in the architecture?
fbt-param-with-leading-whitespace.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/fbt-param-with-leading-whitespace.js (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