index.js — react Source File
Architecture documentation for index.js, a javascript file in the react codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR afbc8624_2e32_1a11_05f6_ca9cd5dde99a["index.js"] 43315ad6_972b_89f2_a26c_ae2c6075675a["FixtureSet.js"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> 43315ad6_972b_89f2_a26c_ae2c6075675a f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c["FixtureSet"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c 14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> 14dde3c9_48ef_6e34_3667_978d06aff15d e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> e1e356f5_b085_dad5_a81f_4b4844381311 ca954afb_9949_135f_2ed7_05de6b8946b4["NumberTestCase.js"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> ca954afb_9949_135f_2ed7_05de6b8946b4 3d659a34_85e5_785a_dba0_9919cab5dd6d["NumberTestCase"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> 3d659a34_85e5_785a_dba0_9919cab5dd6d 97976e93_b2ce_07f3_01b5_9261b9ac0665["NumberInputDecimal.js"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> 97976e93_b2ce_07f3_01b5_9261b9ac0665 d4e83a55_b4e1_0a8e_9731_3067d0377e0a["NumberInputDecimal"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> d4e83a55_b4e1_0a8e_9731_3067d0377e0a 58a7e499_7fc4_2aa1_c61c_1fd2cdb46cd6["NumberInputExtraZeroes.js"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> 58a7e499_7fc4_2aa1_c61c_1fd2cdb46cd6 a7bb18dc_722e_d287_3e96_2b178be470cc["NumberInputExtraZeroes"] afbc8624_2e32_1a11_05f6_ca9cd5dde99a --> a7bb18dc_722e_d287_3e96_2b178be470cc style afbc8624_2e32_1a11_05f6_ca9cd5dde99a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import NumberTestCase from './NumberTestCase';
import NumberInputDecimal from './NumberInputDecimal';
import NumberInputExtraZeroes from './NumberInputExtraZeroes';
const React = window.React;
function NumberInputs() {
return (
<FixtureSet
title="Number inputs"
description="Number inputs inconsistently assign and report the value
property depending on the browser.">
<TestCase
title="Backspacing"
description="The decimal place should not be lost">
<TestCase.Steps>
<li>Type "3.1"</li>
<li>Press backspace, eliminating the "1"</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
The field should read "3.", preserving the decimal place
</TestCase.ExpectedResult>
<NumberTestCase />
<p className="footnote">
<b>Notes:</b> Modern Chrome and Safari {'<='} 6 clear trailing
decimals on blur. React makes this concession so that the value
attribute remains in sync with the value property.
</p>
</TestCase>
<TestCase
title="Decimal precision"
description="Supports decimal precision greater than 2 places">
<TestCase.Steps>
<li>Type "0.01"</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
The field should read "0.01"
</TestCase.ExpectedResult>
<NumberTestCase />
</TestCase>
<TestCase
title="Exponent form"
description="Supports exponent form ('2e4')">
<TestCase.Steps>
<li>Type "2e"</li>
<li>Type 4, to read "2e4"</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
The field should read "2e4". The parsed value should read "20000"
</TestCase.ExpectedResult>
// ... (134 more lines)
Domain
Subdomains
Functions
Dependencies
Source
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): NumberInputs.
What does index.js depend on?
index.js imports 10 module(s): FixtureSet, FixtureSet.js, NumberInputDecimal, NumberInputDecimal.js, NumberInputExtraZeroes, NumberInputExtraZeroes.js, NumberTestCase, NumberTestCase.js, and 2 more.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/number-inputs/index.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/dom/src/components/fixtures/number-inputs).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free