Home / File/ index.js — react Source File

index.js — react Source File

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

File javascript BabelCompiler Optimization 11 imports 1 classes

Entity Profile

Dependency Diagram

graph LR
  1d9eef82_a8e2_98f5_d838_60291fc890b8["index.js"]
  bc8ae172_cc20_3692_943c_bbdb1ad34855["Fixture.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> bc8ae172_cc20_3692_943c_bbdb1ad34855
  2851624d_a736_f3f6_2132_5a20630983fe["Fixture"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 2851624d_a736_f3f6_2132_5a20630983fe
  a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb["Fixture"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb
  43315ad6_972b_89f2_a26c_ae2c6075675a["FixtureSet.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 43315ad6_972b_89f2_a26c_ae2c6075675a
  f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c["FixtureSet"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c
  14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 14dde3c9_48ef_6e34_3667_978d06aff15d
  e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> e1e356f5_b085_dad5_a81f_4b4844381311
  54dddc6b_95b5_d917_4703_e6a8f64ec36c["InputTestCase.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 54dddc6b_95b5_d917_4703_e6a8f64ec36c
  284c120f_94a4_b51a_afd4_4773500fb56f["InputTestCase"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 284c120f_94a4_b51a_afd4_4773500fb56f
  64a4651a_a77b_7f25_e03a_f6b1e131448a["ReplaceEmailInput.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 64a4651a_a77b_7f25_e03a_f6b1e131448a
  7430f908_777c_4ae2_a154_485d8a934900["ReplaceEmailInput"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 7430f908_777c_4ae2_a154_485d8a934900
  style 1d9eef82_a8e2_98f5_d838_60291fc890b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Fixture from '../../Fixture';
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import InputTestCase from './InputTestCase';
import ReplaceEmailInput from './ReplaceEmailInput';

const React = window.React;

class TextInputFixtures extends React.Component {
  render() {
    return (
      <FixtureSet
        title="Inputs"
        description="Common behavior across controlled and uncontrolled inputs">
        <TestCase title="Numbers in a controlled text field with no handler">
          <TestCase.Steps>
            <li>Move the cursor to after "2" in the text field</li>
            <li>Type ".2" into the text input</li>
          </TestCase.Steps>

          <TestCase.ExpectedResult>
            The text field's value should not update.
          </TestCase.ExpectedResult>

          <Fixture>
            <div className="control-box">
              <fieldset>
                <legend>Value as number</legend>
                <input value={2} onChange={() => {}} />
              </fieldset>

              <fieldset>
                <legend>Value as string</legend>
                <input value={'2'} onChange={() => {}} />
              </fieldset>
            </div>
          </Fixture>

          <p className="footnote">
            This issue was first introduced when we added extra logic to number
            inputs to prevent unexpected behavior in Chrome and Safari (see the
            number input test case).
          </p>
        </TestCase>

        <TestCase
          title="Required Inputs"
          affectedBrowsers="Firefox"
          relatedIssues="8395">
          <TestCase.Steps>
            <li>View this test in Firefox</li>
          </TestCase.Steps>

          <TestCase.ExpectedResult>
            You should{' '}
            <b>
              <i>not</i>
            </b>{' '}
            see a red aura, indicating the input is invalid.
            <br />
// ... (108 more lines)

Domain

Subdomains

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 does index.js depend on?
index.js imports 11 module(s): Fixture, Fixture, Fixture.js, FixtureSet, FixtureSet.js, InputTestCase, InputTestCase.js, ReplaceEmailInput, and 3 more.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/text-inputs/index.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/dom/src/components/fixtures/text-inputs).

Analyze Your Own Codebase

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

Try Supermodel Free