Home / File/ invalid-jsx-lowercase-localvar.jsx — react Source File

invalid-jsx-lowercase-localvar.jsx — react Source File

Architecture documentation for invalid-jsx-lowercase-localvar.jsx, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  426aa1b1_56b8_f646_cc89_b00b59e3d273["invalid-jsx-lowercase-localvar.jsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  426aa1b1_56b8_f646_cc89_b00b59e3d273 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 426aa1b1_56b8_f646_cc89_b00b59e3d273 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {Throw} from 'shared-runtime';

/**
 * Note: this is disabled in the evaluator due to different devmode errors.
 * Found differences in evaluator results
 *  Non-forget (expected):
 *  (kind: ok) <invalidtag val="[object Object]"></invalidtag>
 *  logs: ['Warning: <%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.%s','invalidTag']
 *
 *  Forget:
 *  (kind: ok) <invalidtag val="[object Object]"></invalidtag>
 *  logs: [
 *   'Warning: <%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.%s','invalidTag',
 *   'Warning: The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.%s','invalidTag',
 *  ]
 */
function useFoo() {
  const invalidTag = Throw;
  /**
   * Need to be careful to not parse `invalidTag` as a localVar (i.e. render
   * Throw). Note that the jsx transform turns this into a string tag:
   * `jsx("invalidTag"...
   */
  return <invalidTag val={{val: 2}} />;
}
export const FIXTURE_ENTRYPOINT = {
  fn: useFoo,
  params: [],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does invalid-jsx-lowercase-localvar.jsx do?
invalid-jsx-lowercase-localvar.jsx is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in invalid-jsx-lowercase-localvar.jsx?
invalid-jsx-lowercase-localvar.jsx defines 1 function(s): useFoo.
What does invalid-jsx-lowercase-localvar.jsx depend on?
invalid-jsx-lowercase-localvar.jsx imports 1 module(s): shared-runtime.
Where is invalid-jsx-lowercase-localvar.jsx in the architecture?
invalid-jsx-lowercase-localvar.jsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/invalid-jsx-lowercase-localvar.jsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free