Home / File/ Example.js — react Source File

Example.js — react Source File

Architecture documentation for Example.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ee9b7068_e474_35ca_bd66_f2c860d7b356["Example.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  ee9b7068_e474_35ca_bd66_f2c860d7b356 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style ee9b7068_e474_35ca_bd66_f2c860d7b356 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import React, {useState} from 'react';

export function Component() {
  const [count, setCount] = useState(0);

  return (
    <div>
      <p>You clicked {count} times</p>
      <button onClick={() => setCount(count + 1)}>Click me</button>
    </div>
  );
}

Domain

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does Example.js do?
Example.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in Example.js?
Example.js defines 1 function(s): Component.
What does Example.js depend on?
Example.js imports 1 module(s): react.
Where is Example.js in the architecture?
Example.js is located at packages/react-devtools-shared/src/hooks/__tests__/__source__/Example.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/hooks/__tests__/__source__).

Analyze Your Own Codebase

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

Try Supermodel Free