error.todo-fbt-as-local.js — react Source File
Architecture documentation for error.todo-fbt-as-local.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5adb26fc_d4dd_111d_abf6_343275de1915["error.todo-fbt-as-local.js"] 2db15464_200a_540f_8671_b62de113ab09["fbt"] 5adb26fc_d4dd_111d_abf6_343275de1915 --> 2db15464_200a_540f_8671_b62de113ab09 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 5adb26fc_d4dd_111d_abf6_343275de1915 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 5adb26fc_d4dd_111d_abf6_343275de1915 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fbt from 'fbt';
import {identity} from 'shared-runtime';
/**
* Note that the fbt transform looks for callsites with a `fbt`-named callee.
* This is incompatible with react-compiler as we rename local variables in
* HIRBuilder + RenameVariables.
*
* See evaluator error:
* Found differences in evaluator results
* Non-forget (expected):
* (kind: ok) <div>Hello, Sathya!Goodbye, Sathya!</div>
* Forget:
* (kind: exception) fbt$0.param is not a function
*/
function Foo(props) {
const getText1 = fbt =>
fbt(
`Hello, ${fbt.param('(key) name', identity(props.name))}!`,
'(description) Greeting'
);
const getText2 = fbt =>
fbt(
`Goodbye, ${fbt.param('(key) name', identity(props.name))}!`,
'(description) Greeting2'
);
return (
<div>
{getText1(fbt)}
{getText2(fbt)}
</div>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [{name: 'Sathya'}],
};
Domain
Subdomains
Functions
Dependencies
- fbt
- shared-runtime
Source
Frequently Asked Questions
What does error.todo-fbt-as-local.js do?
error.todo-fbt-as-local.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 error.todo-fbt-as-local.js?
error.todo-fbt-as-local.js defines 1 function(s): Foo.
What does error.todo-fbt-as-local.js depend on?
error.todo-fbt-as-local.js imports 2 module(s): fbt, shared-runtime.
Where is error.todo-fbt-as-local.js in the architecture?
error.todo-fbt-as-local.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/error.todo-fbt-as-local.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