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

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

Architecture documentation for fbt-param-with-trailing-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
  3da25975_3055_91af_540e_35153d1cd3cc["fbt-param-with-trailing-whitespace.js"]
  2db15464_200a_540f_8671_b62de113ab09["fbt"]
  3da25975_3055_91af_540e_35153d1cd3cc --> 2db15464_200a_540f_8671_b62de113ab09
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  3da25975_3055_91af_540e_35153d1cd3cc --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 3da25975_3055_91af_540e_35153d1cd3cc 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-trailing-whitespace.js do?
fbt-param-with-trailing-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-trailing-whitespace.js?
fbt-param-with-trailing-whitespace.js defines 1 function(s): Component.
What does fbt-param-with-trailing-whitespace.js depend on?
fbt-param-with-trailing-whitespace.js imports 2 module(s): fbt, shared-runtime.
Where is fbt-param-with-trailing-whitespace.js in the architecture?
fbt-param-with-trailing-whitespace.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/fbt-param-with-trailing-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