Home / File/ index.js — react Source File

index.js — react Source File

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

File javascript BabelCompiler Optimization 6 imports 1 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  86f24308_7a2e_fd8e_db30_3806304dcca0["index.js"]
  43315ad6_972b_89f2_a26c_ae2c6075675a["FixtureSet.js"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> 43315ad6_972b_89f2_a26c_ae2c6075675a
  f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c["FixtureSet"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c
  14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> 14dde3c9_48ef_6e34_3667_978d06aff15d
  e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> e1e356f5_b085_dad5_a81f_4b4844381311
  94fc7e87_06ae_cde8_c174_2ca690027179["ControlledFormFixture.js"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> 94fc7e87_06ae_cde8_c174_2ca690027179
  16e01f81_657f_1153_c3c5_437683dc9591["ControlledFormFixture"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> 16e01f81_657f_1153_c3c5_437683dc9591
  style 86f24308_7a2e_fd8e_db30_3806304dcca0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import ControlledFormFixture from './ControlledFormFixture';
const React = window.React;

export default class FormStateCases extends React.Component {
  render() {
    return (
      <FixtureSet title="Form State">
        <TestCase
          title="Form state autofills from browser"
          description="Form start should autofill/autocomplete if user has autocomplete/autofill information saved. The user may need to set-up autofill or autocomplete with their specific browser.">
          <TestCase.Steps>
            <li>
              Set up autofill/autocomplete for your browser.
              <br />
              Instructions:
              <ul>
                <li>
                  <SafeLink
                    href="https://support.google.com/chrome/answer/142893?co=GENIE.Platform%3DDesktop&hl=en"
                    text="Google Chrome"
                  />
                </li>
                <li>
                  <SafeLink
                    href="https://support.mozilla.org/en-US/kb/autofill-logins-firefox"
                    text="Mozilla FireFox"
                  />
                </li>
                <li>
                  <SafeLink
                    href="https://support.microsoft.com/en-us/help/4027718/microsoft-edge-automatically-fill-info"
                    text="Microsoft Edge"
                  />
                </li>
              </ul>
            </li>
            <li>Click into any input.</li>
            <li>Select any autofill option.</li>
          </TestCase.Steps>
          <TestCase.ExpectedResult>
            Autofill options should appear when clicking into fields. Selected
            autofill options should change state (shown underneath, under
            "States").
          </TestCase.ExpectedResult>
          <ControlledFormFixture />
        </TestCase>
      </FixtureSet>
    );
  }
}

const SafeLink = ({text, href}) => {
  return (
    <a target="_blank" rel="noreferrer" href={href}>
      {text}
    </a>
  );
};

Domain

Subdomains

Functions

Classes

Frequently Asked Questions

What does index.js do?
index.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in index.js?
index.js defines 1 function(s): SafeLink.
What does index.js depend on?
index.js imports 6 module(s): ControlledFormFixture, ControlledFormFixture.js, FixtureSet, FixtureSet.js, TestCase, TestCase.js.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/form-state/index.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/dom/src/components/fixtures/form-state).

Analyze Your Own Codebase

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

Try Supermodel Free