├── .gitignore
├── .idea
├── encodings.xml
├── misc.xml
├── modules.xml
├── reactExplain.iml
├── vcs.xml
└── workspace.xml
├── README.md
├── jquery-3.4.1.min.js
├── moment.js
├── react16.8.6
├── AUTHORS
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── appveyor.yml
├── dangerfile.js
├── fixtures
│ ├── art
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── VectorWidget.js
│ │ ├── app.js
│ │ ├── index.html
│ │ ├── package.json
│ │ ├── webpack.config.js
│ │ └── yarn.lock
│ ├── attribute-behavior
│ │ ├── .gitignore
│ │ ├── AttributeTableSnapshot.md
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ ├── index.html
│ │ │ └── manifest.json
│ │ ├── src
│ │ │ ├── App.js
│ │ │ ├── App.test.js
│ │ │ ├── attributes.js
│ │ │ ├── index.css
│ │ │ └── index.js
│ │ └── yarn.lock
│ ├── dom
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── act-dom.html
│ │ │ ├── favicon.ico
│ │ │ ├── index.html
│ │ │ ├── react-logo.svg
│ │ │ ├── renderer.html
│ │ │ ├── renderer.js
│ │ │ └── test.mp4
│ │ ├── src
│ │ │ ├── components
│ │ │ │ ├── App.js
│ │ │ │ ├── Fixture.js
│ │ │ │ ├── FixtureSet.js
│ │ │ │ ├── Header.js
│ │ │ │ ├── Iframe.js
│ │ │ │ ├── IssueList.js
│ │ │ │ ├── TestCase.js
│ │ │ │ ├── VersionPicker.js
│ │ │ │ ├── fixtures
│ │ │ │ │ ├── buttons
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── custom-elements
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── date-inputs
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── switch-date-test-case.js
│ │ │ │ │ ├── error-handling
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── event-pooling
│ │ │ │ │ │ ├── hit-box.js
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── mouse-move.js
│ │ │ │ │ │ └── persistence.js
│ │ │ │ │ ├── home.js
│ │ │ │ │ ├── hydration
│ │ │ │ │ │ ├── Code.js
│ │ │ │ │ │ ├── code-transformer.js
│ │ │ │ │ │ ├── codemirror-paraiso-dark.css
│ │ │ │ │ │ ├── data.js
│ │ │ │ │ │ ├── hydration.css
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── input-change-events
│ │ │ │ │ │ ├── InputPlaceholderFixture.js
│ │ │ │ │ │ ├── RadioClickFixture.js
│ │ │ │ │ │ ├── RadioGroupFixture.js
│ │ │ │ │ │ ├── RadioNameChangeFixture.js
│ │ │ │ │ │ ├── RangeKeyboardFixture.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── media-events
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── mouse-events
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── mouse-movement.js
│ │ │ │ │ ├── number-inputs
│ │ │ │ │ │ ├── NumberInputDecimal.js
│ │ │ │ │ │ ├── NumberInputExtraZeroes.js
│ │ │ │ │ │ ├── NumberTestCase.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── password-inputs
│ │ │ │ │ │ ├── PasswordTestCase.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── pointer-events
│ │ │ │ │ │ ├── drag-box.js
│ │ │ │ │ │ ├── drag.js
│ │ │ │ │ │ ├── hover-box.js
│ │ │ │ │ │ ├── hover.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── range-inputs
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── selection-events
│ │ │ │ │ │ ├── OnSelectEventTestCase.js
│ │ │ │ │ │ ├── ReorderedInputsTestCase.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── selects
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── suspense
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── text-inputs
│ │ │ │ │ │ ├── InputTestCase.js
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── ReplaceEmailInput.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ └── textareas
│ │ │ │ │ │ └── index.js
│ │ │ │ └── propTypes.js
│ │ │ ├── find-dom-node.js
│ │ │ ├── index.js
│ │ │ ├── index.test.js
│ │ │ ├── polyfills.js
│ │ │ ├── react-loader.js
│ │ │ ├── style.css
│ │ │ ├── tags.js
│ │ │ └── toWarnDev.js
│ │ └── yarn.lock
│ ├── eslint
│ │ ├── .eslintrc.json
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── proxy
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── watch.sh
│ │ └── yarn.lock
│ ├── expiration
│ │ ├── .gitignore
│ │ ├── package.json
│ │ ├── public
│ │ │ └── index.html
│ │ ├── src
│ │ │ └── index.js
│ │ └── yarn.lock
│ ├── fiber-debugger
│ │ ├── .env
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ └── index.html
│ │ ├── src
│ │ │ ├── App.js
│ │ │ ├── Editor.js
│ │ │ ├── Fibers.js
│ │ │ ├── describeFibers.js
│ │ │ ├── index.css
│ │ │ └── index.js
│ │ └── yarn.lock
│ ├── fiber-triangle
│ │ └── index.html
│ ├── fizz-ssr-browser
│ │ └── index.html
│ ├── packaging
│ │ ├── README.md
│ │ ├── babel-standalone
│ │ │ └── dev.html
│ │ ├── browserify
│ │ │ ├── dev
│ │ │ │ ├── .gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ │ ├── .gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ ├── brunch
│ │ │ ├── dev
│ │ │ │ ├── .gitignore
│ │ │ │ ├── app
│ │ │ │ │ └── initialize.js
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ │ ├── .gitignore
│ │ │ │ ├── app
│ │ │ │ └── initialize.js
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ ├── build-all.js
│ │ ├── globals
│ │ │ ├── dev.html
│ │ │ └── prod.html
│ │ ├── index.html
│ │ ├── requirejs
│ │ │ ├── dev.html
│ │ │ └── prod.html
│ │ ├── rjs
│ │ │ ├── dev
│ │ │ │ ├── .gitignore
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ │ ├── .gitignore
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ ├── systemjs-builder
│ │ │ ├── dev
│ │ │ │ ├── .gitignore
│ │ │ │ ├── build.js
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ │ ├── .gitignore
│ │ │ │ ├── build.js
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ ├── systemjs
│ │ │ ├── dev.html
│ │ │ └── prod.html
│ │ ├── webpack-alias
│ │ │ ├── dev
│ │ │ │ ├── .gitignore
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ │ ├── .gitignore
│ │ │ │ ├── config.js
│ │ │ │ ├── index.html
│ │ │ │ ├── input.js
│ │ │ │ ├── package.json
│ │ │ │ └── yarn.lock
│ │ └── webpack
│ │ │ ├── dev
│ │ │ ├── .gitignore
│ │ │ ├── config.js
│ │ │ ├── index.html
│ │ │ ├── input.js
│ │ │ ├── package.json
│ │ │ └── yarn.lock
│ │ │ └── prod
│ │ │ ├── .gitignore
│ │ │ ├── config.js
│ │ │ ├── index.html
│ │ │ ├── input.js
│ │ │ ├── package.json
│ │ │ └── yarn.lock
│ ├── scheduler
│ │ └── index.html
│ ├── ssr
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ └── index.html
│ │ ├── server
│ │ │ ├── index.js
│ │ │ └── render.js
│ │ ├── src
│ │ │ ├── components
│ │ │ │ ├── App.js
│ │ │ │ ├── Chrome.css
│ │ │ │ ├── Chrome.js
│ │ │ │ ├── Page.css
│ │ │ │ ├── Page.js
│ │ │ │ ├── Page2.js
│ │ │ │ ├── Suspend.js
│ │ │ │ └── Theme.js
│ │ │ └── index.js
│ │ └── yarn.lock
│ ├── tracing
│ │ ├── index.html
│ │ ├── script.js
│ │ ├── test.html
│ │ └── test.js
│ └── unstable-async
│ │ └── time-slicing
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── public
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ └── manifest.json
│ │ ├── src
│ │ ├── Charts.js
│ │ ├── Clock.js
│ │ ├── index.css
│ │ └── index.js
│ │ └── yarn.lock
├── netlify.toml
├── package.json
├── packages
│ ├── create-subscription
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── __tests__
│ │ │ └── createSubscription-test.internal.js
│ │ │ └── createSubscription.js
│ ├── eslint-plugin-react-hooks
│ │ ├── README.md
│ │ ├── __tests__
│ │ │ ├── ESLintRuleExhaustiveDeps-test.js
│ │ │ └── ESLintRulesOfHooks-test.js
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── ExhaustiveDeps.js
│ │ │ ├── RulesOfHooks.js
│ │ │ └── index.js
│ ├── events
│ │ ├── EventBatching.js
│ │ ├── EventPluginHub.js
│ │ ├── EventPluginRegistry.js
│ │ ├── EventPluginUtils.js
│ │ ├── EventPropagators.js
│ │ ├── EventSystemFlags.js
│ │ ├── PluginModuleType.js
│ │ ├── ReactControlledComponent.js
│ │ ├── ReactGenericBatching.js
│ │ ├── ReactSyntheticEventType.js
│ │ ├── ResponderEventPlugin.js
│ │ ├── ResponderSyntheticEvent.js
│ │ ├── ResponderTopLevelEventTypes.js
│ │ ├── ResponderTouchHistoryStore.js
│ │ ├── SyntheticEvent.js
│ │ ├── TopLevelEventTypes.js
│ │ ├── __tests__
│ │ │ ├── EventPluginRegistry-test.internal.js
│ │ │ ├── ResponderEventPlugin-test.internal.js
│ │ │ ├── accumulate-test.internal.js
│ │ │ └── accumulateInto-test.internal.js
│ │ ├── accumulate.js
│ │ ├── accumulateInto.js
│ │ ├── forEachAccumulated.js
│ │ ├── forks
│ │ │ └── ResponderTopLevelEventTypes.dom.js
│ │ └── package.json
│ ├── jest-mock-scheduler
│ │ ├── README.md
│ │ ├── npm
│ │ │ └── index.js
│ │ └── package.json
│ ├── jest-react
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ └── JestReact.js
│ ├── react-art
│ │ ├── Circle.js
│ │ ├── README.md
│ │ ├── Rectangle.js
│ │ ├── Wedge.js
│ │ ├── index.js
│ │ ├── npm
│ │ │ ├── Circle.js
│ │ │ ├── Rectangle.js
│ │ │ ├── Wedge.js
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── ReactART.js
│ │ │ ├── ReactARTHostConfig.js
│ │ │ ├── ReactARTInternals.js
│ │ │ └── __tests__
│ │ │ ├── ReactART-test.js
│ │ │ └── __snapshots__
│ │ │ └── ReactART-test.js.snap
│ ├── react-cache
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── LRU.js
│ │ │ ├── ReactCache.js
│ │ │ └── __tests__
│ │ │ └── ReactCache-test.internal.js
│ ├── react-debug-tools
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── ReactDebugHooks.js
│ │ │ ├── ReactDebugTools.js
│ │ │ └── __tests__
│ │ │ ├── ReactDevToolsHooksIntegration-test.js
│ │ │ ├── ReactHooksInspection-test.js
│ │ │ └── ReactHooksInspectionIntegration-test.js
│ ├── react-dom
│ │ ├── README.md
│ │ ├── index.fb.js
│ │ ├── index.js
│ │ ├── npm
│ │ │ ├── index.js
│ │ │ ├── profiling.js
│ │ │ ├── server.browser.js
│ │ │ ├── server.js
│ │ │ ├── server.node.js
│ │ │ ├── test-utils.js
│ │ │ ├── unstable-fizz.browser.js
│ │ │ ├── unstable-fizz.js
│ │ │ ├── unstable-fizz.node.js
│ │ │ └── unstable-native-dependencies.js
│ │ ├── package.json
│ │ ├── server.browser.js
│ │ ├── server.js
│ │ ├── server.node.js
│ │ ├── src
│ │ │ ├── __tests__
│ │ │ │ ├── CSSPropertyOperations-test.js
│ │ │ │ ├── DOMPropertyOperations-test.js
│ │ │ │ ├── EventPluginHub-test.js
│ │ │ │ ├── ReactBrowserEventEmitter-test.internal.js
│ │ │ │ ├── ReactChildReconciler-test.js
│ │ │ │ ├── ReactComponent-test.js
│ │ │ │ ├── ReactComponentLifeCycle-test.js
│ │ │ │ ├── ReactCompositeComponent-test.js
│ │ │ │ ├── ReactCompositeComponentDOMMinimalism-test.js
│ │ │ │ ├── ReactCompositeComponentNestedState-test.js
│ │ │ │ ├── ReactCompositeComponentState-test.js
│ │ │ │ ├── ReactDOM-test.js
│ │ │ │ ├── ReactDOMAttribute-test.js
│ │ │ │ ├── ReactDOMComponent-test.js
│ │ │ │ ├── ReactDOMComponentTree-test.js
│ │ │ │ ├── ReactDOMEventListener-test.js
│ │ │ │ ├── ReactDOMFiber-test.js
│ │ │ │ ├── ReactDOMFiberAsync-test.internal.js
│ │ │ │ ├── ReactDOMFizzServerBrowser-test.js
│ │ │ │ ├── ReactDOMFizzServerNode-test.js
│ │ │ │ ├── ReactDOMHooks-test.js
│ │ │ │ ├── ReactDOMIframe-test.js
│ │ │ │ ├── ReactDOMInput-test.js
│ │ │ │ ├── ReactDOMInvalidARIAHook-test.js
│ │ │ │ ├── ReactDOMOption-test.js
│ │ │ │ ├── ReactDOMRoot-test.js
│ │ │ │ ├── ReactDOMSVG-test.js
│ │ │ │ ├── ReactDOMSelect-test.js
│ │ │ │ ├── ReactDOMSelection-test.internal.js
│ │ │ │ ├── ReactDOMServerIntegrationAttributes-test.js
│ │ │ │ ├── ReactDOMServerIntegrationBasic-test.js
│ │ │ │ ├── ReactDOMServerIntegrationCheckbox-test.js
│ │ │ │ ├── ReactDOMServerIntegrationClassContextType-test.js
│ │ │ │ ├── ReactDOMServerIntegrationElements-test.js
│ │ │ │ ├── ReactDOMServerIntegrationFragment-test.js
│ │ │ │ ├── ReactDOMServerIntegrationHooks-test.internal.js
│ │ │ │ ├── ReactDOMServerIntegrationInput-test.js
│ │ │ │ ├── ReactDOMServerIntegrationLegacyContext-test.js
│ │ │ │ ├── ReactDOMServerIntegrationModes-test.js
│ │ │ │ ├── ReactDOMServerIntegrationNewContext-test.js
│ │ │ │ ├── ReactDOMServerIntegrationReconnecting-test.js
│ │ │ │ ├── ReactDOMServerIntegrationRefs-test.js
│ │ │ │ ├── ReactDOMServerIntegrationSelect-test.js
│ │ │ │ ├── ReactDOMServerIntegrationSpecialTypes-test.js
│ │ │ │ ├── ReactDOMServerIntegrationTextarea-test.js
│ │ │ │ ├── ReactDOMServerIntegrationUntrustedURL-test.internal.js
│ │ │ │ ├── ReactDOMServerIntegrationUserInteraction-test.js
│ │ │ │ ├── ReactDOMServerLifecycles-test.js
│ │ │ │ ├── ReactDOMServerPartialHydration-test.internal.js
│ │ │ │ ├── ReactDOMServerSuspense-test.internal.js
│ │ │ │ ├── ReactDOMShorthandCSSPropertyCollision-test.internal.js
│ │ │ │ ├── ReactDOMSuspensePlaceholder-test.js
│ │ │ │ ├── ReactDOMTextComponent-test.js
│ │ │ │ ├── ReactDOMTextarea-test.js
│ │ │ │ ├── ReactDOMserverIntegrationProgress-test.js
│ │ │ │ ├── ReactEmptyComponent-test.js
│ │ │ │ ├── ReactErrorBoundaries-test.internal.js
│ │ │ │ ├── ReactErrorLoggingRecovery-test.js
│ │ │ │ ├── ReactEventIndependence-test.js
│ │ │ │ ├── ReactFunctionComponent-test.js
│ │ │ │ ├── ReactIdentity-test.js
│ │ │ │ ├── ReactLegacyErrorBoundaries-test.internal.js
│ │ │ │ ├── ReactMockedComponent-test.js
│ │ │ │ ├── ReactMount-test.js
│ │ │ │ ├── ReactMountDestruction-test.js
│ │ │ │ ├── ReactMultiChild-test.js
│ │ │ │ ├── ReactMultiChildReconcile-test.js
│ │ │ │ ├── ReactMultiChildText-test.js
│ │ │ │ ├── ReactRenderDocument-test.js
│ │ │ │ ├── ReactServerRendering-test.js
│ │ │ │ ├── ReactServerRenderingBrowser-test.js
│ │ │ │ ├── ReactServerRenderingHydration-test.js
│ │ │ │ ├── ReactTestUtils-test.js
│ │ │ │ ├── ReactTestUtilsAct-test.internal.js
│ │ │ │ ├── ReactTestUtilsAct-test.js
│ │ │ │ ├── ReactTreeTraversal-test.js
│ │ │ │ ├── ReactUpdates-test.js
│ │ │ │ ├── __snapshots__
│ │ │ │ │ └── ReactTestUtils-test.js.snap
│ │ │ │ ├── escapeTextForBrowser-test.js
│ │ │ │ ├── findDOMNode-test.js
│ │ │ │ ├── multiple-copies-of-react-test.js
│ │ │ │ ├── quoteAttributeValueForBrowser-test.js
│ │ │ │ ├── refs-destruction-test.js
│ │ │ │ ├── refs-test.js
│ │ │ │ ├── renderSubtreeIntoContainer-test.js
│ │ │ │ ├── utils
│ │ │ │ │ └── ReactDOMServerIntegrationTestUtils.js
│ │ │ │ └── validateDOMNesting-test.js
│ │ │ ├── client
│ │ │ │ ├── DOMPropertyOperations.js
│ │ │ │ ├── ReactDOM.js
│ │ │ │ ├── ReactDOMClientInjection.js
│ │ │ │ ├── ReactDOMComponent.js
│ │ │ │ ├── ReactDOMComponentTree.js
│ │ │ │ ├── ReactDOMFB.js
│ │ │ │ ├── ReactDOMHostConfig.js
│ │ │ │ ├── ReactDOMInput.js
│ │ │ │ ├── ReactDOMOption.js
│ │ │ │ ├── ReactDOMSelect.js
│ │ │ │ ├── ReactDOMSelection.js
│ │ │ │ ├── ReactDOMTextarea.js
│ │ │ │ ├── ReactInputSelection.js
│ │ │ │ ├── ToStringValue.js
│ │ │ │ ├── __tests__
│ │ │ │ │ ├── dangerouslySetInnerHTML-test.js
│ │ │ │ │ └── getNodeForCharacterOffset-test.js
│ │ │ │ ├── getActiveElement.js
│ │ │ │ ├── getNodeForCharacterOffset.js
│ │ │ │ ├── inputValueTracking.js
│ │ │ │ ├── setInnerHTML.js
│ │ │ │ ├── setTextContent.js
│ │ │ │ └── validateDOMNesting.js
│ │ │ ├── events
│ │ │ │ ├── BeforeInputEventPlugin.js
│ │ │ │ ├── ChangeEventPlugin.js
│ │ │ │ ├── DOMEventPluginOrder.js
│ │ │ │ ├── DOMEventResponderSystem.js
│ │ │ │ ├── DOMTopLevelEventTypes.js
│ │ │ │ ├── EnterLeaveEventPlugin.js
│ │ │ │ ├── EventListener.js
│ │ │ │ ├── FallbackCompositionState.js
│ │ │ │ ├── ReactBrowserEventEmitter.js
│ │ │ │ ├── ReactDOMEventListener.js
│ │ │ │ ├── SelectEventPlugin.js
│ │ │ │ ├── SimpleEventPlugin.js
│ │ │ │ ├── SyntheticAnimationEvent.js
│ │ │ │ ├── SyntheticClipboardEvent.js
│ │ │ │ ├── SyntheticCompositionEvent.js
│ │ │ │ ├── SyntheticDragEvent.js
│ │ │ │ ├── SyntheticFocusEvent.js
│ │ │ │ ├── SyntheticInputEvent.js
│ │ │ │ ├── SyntheticKeyboardEvent.js
│ │ │ │ ├── SyntheticMouseEvent.js
│ │ │ │ ├── SyntheticPointerEvent.js
│ │ │ │ ├── SyntheticTouchEvent.js
│ │ │ │ ├── SyntheticTransitionEvent.js
│ │ │ │ ├── SyntheticUIEvent.js
│ │ │ │ ├── SyntheticWheelEvent.js
│ │ │ │ ├── __tests__
│ │ │ │ │ ├── BeforeInputEventPlugin-test.js
│ │ │ │ │ ├── ChangeEventPlugin-test.internal.js
│ │ │ │ │ ├── DOMEventResponderSystem-test.internal.js
│ │ │ │ │ ├── EnterLeaveEventPlugin-test.js
│ │ │ │ │ ├── SelectEventPlugin-test.js
│ │ │ │ │ ├── SimpleEventPlugin-test.internal.js
│ │ │ │ │ ├── SyntheticClipboardEvent-test.js
│ │ │ │ │ ├── SyntheticEvent-test.js
│ │ │ │ │ ├── SyntheticKeyboardEvent-test.js
│ │ │ │ │ ├── SyntheticMouseEvent-test.js
│ │ │ │ │ ├── SyntheticWheelEvent-test.js
│ │ │ │ │ └── getEventKey-test.js
│ │ │ │ ├── checkPassiveEvents.js
│ │ │ │ ├── forks
│ │ │ │ │ └── EventListener-www.js
│ │ │ │ ├── getEventCharCode.js
│ │ │ │ ├── getEventKey.js
│ │ │ │ ├── getEventModifierState.js
│ │ │ │ ├── getEventTarget.js
│ │ │ │ ├── getVendorPrefixedEventName.js
│ │ │ │ └── isEventSupported.js
│ │ │ ├── server
│ │ │ │ ├── DOMMarkupOperations.js
│ │ │ │ ├── ReactDOMFizzServerBrowser.js
│ │ │ │ ├── ReactDOMFizzServerFormatConfig.js
│ │ │ │ ├── ReactDOMFizzServerNode.js
│ │ │ │ ├── ReactDOMNodeStreamRenderer.js
│ │ │ │ ├── ReactDOMServerBrowser.js
│ │ │ │ ├── ReactDOMServerNode.js
│ │ │ │ ├── ReactDOMStringRenderer.js
│ │ │ │ ├── ReactPartialRenderer.js
│ │ │ │ ├── ReactPartialRendererContext.js
│ │ │ │ ├── ReactPartialRendererHooks.js
│ │ │ │ ├── ReactThreadIDAllocator.js
│ │ │ │ ├── escapeTextForBrowser.js
│ │ │ │ └── quoteAttributeValueForBrowser.js
│ │ │ ├── shared
│ │ │ │ ├── CSSProperty.js
│ │ │ │ ├── CSSPropertyOperations.js
│ │ │ │ ├── CSSShorthandProperty.js
│ │ │ │ ├── DOMNamespaces.js
│ │ │ │ ├── DOMProperty.js
│ │ │ │ ├── HTMLNodeType.js
│ │ │ │ ├── ReactControlledValuePropTypes.js
│ │ │ │ ├── ReactDOMInvalidARIAHook.js
│ │ │ │ ├── ReactDOMNullInputValuePropHook.js
│ │ │ │ ├── ReactDOMUnknownPropertyHook.js
│ │ │ │ ├── assertValidProps.js
│ │ │ │ ├── checkReact.js
│ │ │ │ ├── createMicrosoftUnsafeLocalFunction.js
│ │ │ │ ├── dangerousStyleValue.js
│ │ │ │ ├── hyphenateStyleName.js
│ │ │ │ ├── isCustomComponent.js
│ │ │ │ ├── omittedCloseTags.js
│ │ │ │ ├── possibleStandardNames.js
│ │ │ │ ├── sanitizeURL.js
│ │ │ │ ├── validAriaProperties.js
│ │ │ │ ├── voidElementTags.js
│ │ │ │ └── warnValidStyle.js
│ │ │ ├── test-utils
│ │ │ │ ├── ReactTestUtils.js
│ │ │ │ └── ReactTestUtilsAct.js
│ │ │ └── unstable-native-dependencies
│ │ │ │ └── ReactDOMUnstableNativeDependencies.js
│ │ ├── test-utils.js
│ │ ├── unstable-fizz.browser.js
│ │ ├── unstable-fizz.js
│ │ ├── unstable-fizz.node.js
│ │ └── unstable-native-dependencies.js
│ ├── react-events
│ │ ├── README.md
│ │ ├── docs
│ │ │ ├── Focus.md
│ │ │ ├── FocusScope.md
│ │ │ ├── Hover.md
│ │ │ └── Press.md
│ │ ├── drag.js
│ │ ├── focus-scope.js
│ │ ├── focus.js
│ │ ├── hover.js
│ │ ├── npm
│ │ │ ├── drag.js
│ │ │ ├── focus-scope.js
│ │ │ ├── focus.js
│ │ │ ├── hover.js
│ │ │ ├── press.js
│ │ │ ├── scroll.js
│ │ │ └── swipe.js
│ │ ├── package.json
│ │ ├── press.js
│ │ ├── scroll.js
│ │ ├── src
│ │ │ ├── dom
│ │ │ │ ├── Drag.js
│ │ │ │ ├── Focus.js
│ │ │ │ ├── FocusScope.js
│ │ │ │ ├── Hover.js
│ │ │ │ ├── Press.js
│ │ │ │ ├── Scroll.js
│ │ │ │ ├── Swipe.js
│ │ │ │ └── __tests__
│ │ │ │ │ ├── Drag-test.internal.js
│ │ │ │ │ ├── Focus-test.internal.js
│ │ │ │ │ ├── FocusScope-test.internal.js
│ │ │ │ │ ├── Hover-test.internal.js
│ │ │ │ │ ├── Press-test.internal.js
│ │ │ │ │ └── Scroll-test.internal.js
│ │ │ └── rn
│ │ │ │ └── Press.js
│ │ └── swipe.js
│ ├── react-is
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── ReactIs.js
│ │ │ └── __tests__
│ │ │ └── ReactIs-test.js
│ ├── react-native-renderer
│ │ ├── fabric.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── NativeMethodsMixin.js
│ │ │ ├── NativeMethodsMixinUtils.js
│ │ │ ├── ReactFabric.js
│ │ │ ├── ReactFabricComponentTree.js
│ │ │ ├── ReactFabricEventEmitter.js
│ │ │ ├── ReactFabricEventResponderSystem.js
│ │ │ ├── ReactFabricGlobalResponderHandler.js
│ │ │ ├── ReactFabricHostConfig.js
│ │ │ ├── ReactFabricInjection.js
│ │ │ ├── ReactNativeAttributePayload.js
│ │ │ ├── ReactNativeBridgeEventPlugin.js
│ │ │ ├── ReactNativeComponent.js
│ │ │ ├── ReactNativeComponentTree.js
│ │ │ ├── ReactNativeEventEmitter.js
│ │ │ ├── ReactNativeEventPluginOrder.js
│ │ │ ├── ReactNativeFiberHostComponent.js
│ │ │ ├── ReactNativeFiberInspector.js
│ │ │ ├── ReactNativeGlobalResponderHandler.js
│ │ │ ├── ReactNativeHostConfig.js
│ │ │ ├── ReactNativeInjection.js
│ │ │ ├── ReactNativeInjectionShared.js
│ │ │ ├── ReactNativeRenderer.js
│ │ │ ├── ReactNativeRendererSharedExports.js
│ │ │ ├── ReactNativeTypes.js
│ │ │ ├── __mocks__
│ │ │ └── react-native
│ │ │ │ └── Libraries
│ │ │ │ └── ReactPrivate
│ │ │ │ ├── BatchedBridge.js
│ │ │ │ ├── ExceptionsManager.js
│ │ │ │ ├── InitializeNativeFabricUIManager.js
│ │ │ │ ├── Platform.js
│ │ │ │ ├── RCTEventEmitter.js
│ │ │ │ ├── ReactNativePrivateInitializeCore.js
│ │ │ │ ├── ReactNativePrivateInterface.js
│ │ │ │ ├── ReactNativeViewConfigRegistry.js
│ │ │ │ ├── TextInputState.js
│ │ │ │ ├── UIManager.js
│ │ │ │ ├── deepDiffer.js
│ │ │ │ ├── deepFreezeAndThrowOnMutationInDev.js
│ │ │ │ └── flattenStyle.js
│ │ │ └── __tests__
│ │ │ ├── ReactFabric-test.internal.js
│ │ │ ├── ReactFabricAndNative-test.internal.js
│ │ │ ├── ReactNativeAttributePayload-test.js
│ │ │ ├── ReactNativeError-test.internal.js
│ │ │ ├── ReactNativeEvents-test.internal.js
│ │ │ ├── ReactNativeMount-test.internal.js
│ │ │ ├── __snapshots__
│ │ │ ├── ReactFabric-test.internal.js.snap
│ │ │ ├── ReactNativeEvents-test.internal.js.snap
│ │ │ └── ReactNativeMount-test.internal.js.snap
│ │ │ └── createReactNativeComponentClass-test.internal.js
│ ├── react-noop-renderer
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ ├── index.js
│ │ │ ├── persistent.js
│ │ │ └── server.js
│ │ ├── package.json
│ │ ├── persistent.js
│ │ ├── server.js
│ │ └── src
│ │ │ ├── ReactNoop.js
│ │ │ ├── ReactNoopPersistent.js
│ │ │ ├── ReactNoopServer.js
│ │ │ └── createReactNoop.js
│ ├── react-reconciler
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── inline-typed.js
│ │ ├── inline.art.js
│ │ ├── inline.dom-browser.js
│ │ ├── inline.dom.js
│ │ ├── inline.fabric.js
│ │ ├── inline.fire.js
│ │ ├── inline.native.js
│ │ ├── inline.test.js
│ │ ├── npm
│ │ │ ├── index.js
│ │ │ ├── persistent.js
│ │ │ └── reflection.js
│ │ ├── package.json
│ │ ├── persistent.js
│ │ ├── reflection.js
│ │ └── src
│ │ │ ├── ReactCapturedValue.js
│ │ │ ├── ReactChildFiber.js
│ │ │ ├── ReactCurrentFiber.js
│ │ │ ├── ReactDebugFiberPerf.js
│ │ │ ├── ReactFiber.js
│ │ │ ├── ReactFiberBeginWork.js
│ │ │ ├── ReactFiberClassComponent.js
│ │ │ ├── ReactFiberCommitWork.js
│ │ │ ├── ReactFiberCompleteWork.js
│ │ │ ├── ReactFiberContext.js
│ │ │ ├── ReactFiberDevToolsHook.js
│ │ │ ├── ReactFiberErrorDialog.js
│ │ │ ├── ReactFiberErrorLogger.js
│ │ │ ├── ReactFiberEvents.js
│ │ │ ├── ReactFiberExpirationTime.js
│ │ │ ├── ReactFiberHooks.js
│ │ │ ├── ReactFiberHostConfig.js
│ │ │ ├── ReactFiberHostContext.js
│ │ │ ├── ReactFiberHotReloading.js
│ │ │ ├── ReactFiberHydrationContext.js
│ │ │ ├── ReactFiberInstrumentation.js
│ │ │ ├── ReactFiberLazyComponent.js
│ │ │ ├── ReactFiberNewContext.js
│ │ │ ├── ReactFiberReconciler.js
│ │ │ ├── ReactFiberRoot.js
│ │ │ ├── ReactFiberStack.js
│ │ │ ├── ReactFiberSuspenseComponent.js
│ │ │ ├── ReactFiberSuspenseConfig.js
│ │ │ ├── ReactFiberSuspenseContext.js
│ │ │ ├── ReactFiberThrow.js
│ │ │ ├── ReactFiberTreeReflection.js
│ │ │ ├── ReactFiberUnwindWork.js
│ │ │ ├── ReactFiberWorkLoop.js
│ │ │ ├── ReactHookEffectTags.js
│ │ │ ├── ReactProfilerTimer.js
│ │ │ ├── ReactStrictModeWarnings.js
│ │ │ ├── ReactTypeOfMode.js
│ │ │ ├── ReactUpdateQueue.js
│ │ │ ├── SchedulerWithReactIntegration.js
│ │ │ ├── __tests__
│ │ │ ├── ErrorBoundaryReconciliation-test.internal.js
│ │ │ ├── ReactBatchedMode-test.internal.js
│ │ │ ├── ReactExpiration-test.internal.js
│ │ │ ├── ReactFiberEvents-test.internal.js
│ │ │ ├── ReactFiberHostContext-test.internal.js
│ │ │ ├── ReactFragment-test.js
│ │ │ ├── ReactHooks-test.internal.js
│ │ │ ├── ReactHooksWithNoopRenderer-test.internal.js
│ │ │ ├── ReactIncremental-test.internal.js
│ │ │ ├── ReactIncrementalErrorHandling-test.internal.js
│ │ │ ├── ReactIncrementalErrorLogging-test.js
│ │ │ ├── ReactIncrementalErrorReplay-test.internal.js
│ │ │ ├── ReactIncrementalErrorReplay-test.js
│ │ │ ├── ReactIncrementalPerf-test.internal.js
│ │ │ ├── ReactIncrementalReflection-test.internal.js
│ │ │ ├── ReactIncrementalScheduling-test.internal.js
│ │ │ ├── ReactIncrementalSideEffects-test.internal.js
│ │ │ ├── ReactIncrementalTriangle-test.internal.js
│ │ │ ├── ReactIncrementalUpdates-test.internal.js
│ │ │ ├── ReactIncrementalUpdatesMinimalism-test.js
│ │ │ ├── ReactLazy-test.internal.js
│ │ │ ├── ReactMemo-test.internal.js
│ │ │ ├── ReactNewContext-test.internal.js
│ │ │ ├── ReactNoopRendererAct-test.js
│ │ │ ├── ReactPersistent-test.js
│ │ │ ├── ReactPersistentUpdatesMinimalism-test.js
│ │ │ ├── ReactSchedulerIntegration-test.internal.js
│ │ │ ├── ReactSuspense-test.internal.js
│ │ │ ├── ReactSuspenseFuzz-test.internal.js
│ │ │ ├── ReactSuspenseList-test.internal.js
│ │ │ ├── ReactSuspensePlaceholder-test.internal.js
│ │ │ ├── ReactSuspenseWithNoopRenderer-test.internal.js
│ │ │ ├── ReactTopLevelFragment-test.js
│ │ │ ├── ReactTopLevelText-test.js
│ │ │ ├── ReactTracing-test.internal.js
│ │ │ └── __snapshots__
│ │ │ │ ├── ReactHooks-test.internal.js.snap
│ │ │ │ └── ReactIncrementalPerf-test.internal.js.snap
│ │ │ ├── forks
│ │ │ ├── ReactFiberErrorDialog.native.js
│ │ │ ├── ReactFiberErrorDialog.www.js
│ │ │ ├── ReactFiberHostConfig.art.js
│ │ │ ├── ReactFiberHostConfig.custom.js
│ │ │ ├── ReactFiberHostConfig.dom-browser.js
│ │ │ ├── ReactFiberHostConfig.dom.js
│ │ │ ├── ReactFiberHostConfig.fabric.js
│ │ │ ├── ReactFiberHostConfig.native.js
│ │ │ └── ReactFiberHostConfig.test.js
│ │ │ └── maxSigned31BitInt.js
│ ├── react-refresh
│ │ ├── README.md
│ │ ├── babel.js
│ │ ├── npm
│ │ │ ├── babel.js
│ │ │ └── runtime.js
│ │ ├── package.json
│ │ ├── runtime.js
│ │ └── src
│ │ │ ├── ReactFreshBabelPlugin.js
│ │ │ ├── ReactFreshRuntime.js
│ │ │ └── __tests__
│ │ │ ├── ReactFresh-test.js
│ │ │ ├── ReactFreshBabelPlugin-test.js
│ │ │ ├── ReactFreshIntegration-test.js
│ │ │ └── __snapshots__
│ │ │ └── ReactFreshBabelPlugin-test.js.snap
│ ├── react-stream
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── inline-typed.js
│ │ ├── inline.dom-browser.js
│ │ ├── inline.dom.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── ReactFizzFormatConfig.js
│ │ │ ├── ReactFizzHostConfig.js
│ │ │ ├── ReactFizzHostConfigBrowser.js
│ │ │ ├── ReactFizzHostConfigNode.js
│ │ │ ├── ReactFizzStreamer.js
│ │ │ ├── __tests__
│ │ │ └── ReactServer-test.js
│ │ │ └── forks
│ │ │ ├── ReactFizzFormatConfig.custom.js
│ │ │ ├── ReactFizzFormatConfig.dom-browser.js
│ │ │ ├── ReactFizzFormatConfig.dom.js
│ │ │ ├── ReactFizzHostConfig.custom.js
│ │ │ ├── ReactFizzHostConfig.dom-browser.js
│ │ │ └── ReactFizzHostConfig.dom.js
│ ├── react-test-renderer
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ ├── index.js
│ │ │ └── shallow.js
│ │ ├── package.json
│ │ ├── shallow.js
│ │ └── src
│ │ │ ├── ReactShallowRenderer.js
│ │ │ ├── ReactTestHostConfig.js
│ │ │ ├── ReactTestRenderer.js
│ │ │ ├── ReactTestRendererAct.js
│ │ │ └── __tests__
│ │ │ ├── ReactShallowRenderer-test.js
│ │ │ ├── ReactShallowRendererHooks-test.js
│ │ │ ├── ReactShallowRendererMemo-test.js
│ │ │ ├── ReactTestRenderer-test.internal.js
│ │ │ ├── ReactTestRenderer-test.js
│ │ │ ├── ReactTestRendererAct-test.js
│ │ │ ├── ReactTestRendererAsync-test.js
│ │ │ └── ReactTestRendererTraversal-test.js
│ ├── react
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ └── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── IsSomeRendererActing.js
│ │ │ ├── React.js
│ │ │ ├── ReactBaseClasses.js
│ │ │ ├── ReactBatchConfig.js
│ │ │ ├── ReactChildren.js
│ │ │ ├── ReactContext.js
│ │ │ ├── ReactCreateRef.js
│ │ │ ├── ReactCurrentBatchConfig.js
│ │ │ ├── ReactCurrentDispatcher.js
│ │ │ ├── ReactCurrentOwner.js
│ │ │ ├── ReactDebugCurrentFrame.js
│ │ │ ├── ReactElement.js
│ │ │ ├── ReactElementValidator.js
│ │ │ ├── ReactHooks.js
│ │ │ ├── ReactLazy.js
│ │ │ ├── ReactNoopUpdateQueue.js
│ │ │ ├── ReactSharedInternals.js
│ │ │ ├── __tests__
│ │ │ ├── ReactChildren-test.js
│ │ │ ├── ReactClassEquivalence-test.js
│ │ │ ├── ReactCoffeeScriptClass-test.coffee
│ │ │ ├── ReactContextValidator-test.js
│ │ │ ├── ReactCreateRef-test.js
│ │ │ ├── ReactDOMTracing-test.internal.js
│ │ │ ├── ReactES6Class-test.js
│ │ │ ├── ReactElement-test.js
│ │ │ ├── ReactElementClone-test.js
│ │ │ ├── ReactElementJSX-test.internal.js
│ │ │ ├── ReactElementValidator-test.internal.js
│ │ │ ├── ReactJSXElement-test.js
│ │ │ ├── ReactJSXElementValidator-test.js
│ │ │ ├── ReactProfiler-test.internal.js
│ │ │ ├── ReactProfilerDOM-test.internal.js
│ │ │ ├── ReactProfilerDevToolsIntegration-test.internal.js
│ │ │ ├── ReactPureComponent-test.js
│ │ │ ├── ReactStrictMode-test.internal.js
│ │ │ ├── ReactStrictMode-test.js
│ │ │ ├── ReactTypeScriptClass-test.ts
│ │ │ ├── __snapshots__
│ │ │ │ └── ReactProfiler-test.internal.js.snap
│ │ │ ├── createReactClassIntegration-test.internal.js
│ │ │ ├── createReactClassIntegration-test.js
│ │ │ ├── forwardRef-test.internal.js
│ │ │ ├── forwardRef-test.js
│ │ │ ├── onlyChild-test.js
│ │ │ ├── testDefinitions
│ │ │ │ ├── PropTypes.d.ts
│ │ │ │ ├── React.d.ts
│ │ │ │ └── ReactDOM.d.ts
│ │ │ └── withComponentStack-test.js
│ │ │ ├── forks
│ │ │ ├── ReactCurrentDispatcher.www.js
│ │ │ ├── ReactCurrentOwner.www.js
│ │ │ └── ReactSharedInternals.umd.js
│ │ │ ├── forwardRef.js
│ │ │ ├── memo.js
│ │ │ └── withComponentStack.js
│ ├── scheduler
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── npm
│ │ │ ├── index.js
│ │ │ ├── tracing-profiling.js
│ │ │ ├── tracing.js
│ │ │ ├── umd
│ │ │ │ ├── scheduler-tracing.development.js
│ │ │ │ ├── scheduler-tracing.production.min.js
│ │ │ │ ├── scheduler-tracing.profiling.min.js
│ │ │ │ ├── scheduler.development.js
│ │ │ │ ├── scheduler.production.min.js
│ │ │ │ └── scheduler.profiling.min.js
│ │ │ └── unstable_mock.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Scheduler.js
│ │ │ ├── SchedulerFeatureFlags.js
│ │ │ ├── SchedulerHostConfig.js
│ │ │ ├── Tracing.js
│ │ │ ├── TracingSubscriptions.js
│ │ │ ├── __tests__
│ │ │ │ ├── Scheduler-test.js
│ │ │ │ ├── SchedulerDOM-test.js
│ │ │ │ ├── SchedulerNoDOM-test.js
│ │ │ │ ├── SchedulerUMDBundle-test.internal.js
│ │ │ │ ├── Tracing-test.internal.js
│ │ │ │ ├── Tracing-test.js
│ │ │ │ └── TracingSubscriptions-test.internal.js
│ │ │ └── forks
│ │ │ │ ├── SchedulerFeatureFlags.www.js
│ │ │ │ ├── SchedulerHostConfig.default.js
│ │ │ │ └── SchedulerHostConfig.mock.js
│ │ ├── tracing.js
│ │ └── unstable_mock.js
│ └── shared
│ │ ├── ExecutionEnvironment.js
│ │ ├── HostConfigWithNoHydration.js
│ │ ├── HostConfigWithNoMutation.js
│ │ ├── HostConfigWithNoPersistence.js
│ │ ├── ReactDOMTypes.js
│ │ ├── ReactElementType.js
│ │ ├── ReactError.js
│ │ ├── ReactErrorProd.js
│ │ ├── ReactErrorUtils.js
│ │ ├── ReactFeatureFlags.js
│ │ ├── ReactInstanceMap.js
│ │ ├── ReactLazyComponent.js
│ │ ├── ReactPortal.js
│ │ ├── ReactRootTags.js
│ │ ├── ReactSharedInternals.js
│ │ ├── ReactSideEffectTags.js
│ │ ├── ReactSymbols.js
│ │ ├── ReactTreeTraversal.js
│ │ ├── ReactTypes.js
│ │ ├── ReactVersion.js
│ │ ├── ReactWorkTags.js
│ │ ├── __tests__
│ │ ├── ReactDOMFrameScheduling-test.js
│ │ ├── ReactError-test.internal.js
│ │ ├── ReactErrorProd-test.internal.js
│ │ ├── ReactErrorUtils-test.internal.js
│ │ ├── ReactSymbols-test.internal.js
│ │ └── describeComponentFrame-test.js
│ │ ├── createEventComponent.js
│ │ ├── describeComponentFrame.js
│ │ ├── enqueueTask.js
│ │ ├── forks
│ │ ├── ReactFeatureFlags.native-fb.js
│ │ ├── ReactFeatureFlags.native-oss.js
│ │ ├── ReactFeatureFlags.persistent.js
│ │ ├── ReactFeatureFlags.readonly.js
│ │ ├── ReactFeatureFlags.test-renderer.js
│ │ ├── ReactFeatureFlags.test-renderer.www.js
│ │ ├── ReactFeatureFlags.www.js
│ │ ├── Scheduler.umd.js
│ │ ├── SchedulerTracing.umd.js
│ │ ├── invokeGuardedCallbackImpl.www.js
│ │ ├── lowPriorityWarning.www.js
│ │ ├── object-assign.umd.js
│ │ └── warningWithoutStack.www.js
│ │ ├── getComponentName.js
│ │ ├── invariant.js
│ │ ├── invokeGuardedCallbackImpl.js
│ │ ├── isTextInputElement.js
│ │ ├── isValidElementType.js
│ │ ├── lowPriorityWarning.js
│ │ ├── objectIs.js
│ │ ├── package.json
│ │ ├── shallowEqual.js
│ │ ├── warning.js
│ │ └── warningWithoutStack.js
├── scripts
│ ├── authors
│ ├── babel
│ │ ├── __tests__
│ │ │ ├── transform-prevent-infinite-loops-test.js
│ │ │ └── wrap-warning-with-env-check-test.js
│ │ ├── transform-object-assign-require.js
│ │ ├── transform-prevent-infinite-loops.js
│ │ └── wrap-warning-with-env-check.js
│ ├── bench
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── benchmark.js
│ │ ├── benchmarks
│ │ │ ├── hacker-news
│ │ │ │ ├── benchmark.js
│ │ │ │ ├── build.js
│ │ │ │ ├── generate.js
│ │ │ │ ├── grayarrow.gif
│ │ │ │ ├── index.html
│ │ │ │ ├── logo.png
│ │ │ │ ├── style.css
│ │ │ │ └── top-stories.js
│ │ │ ├── pe-class-components
│ │ │ │ ├── benchmark.js
│ │ │ │ ├── build.js
│ │ │ │ └── index.html
│ │ │ ├── pe-functional-components
│ │ │ │ ├── benchmark.js
│ │ │ │ ├── build.js
│ │ │ │ └── index.html
│ │ │ └── pe-no-components
│ │ │ │ ├── benchmark.js
│ │ │ │ ├── build.js
│ │ │ │ └── index.html
│ │ ├── build.js
│ │ ├── package.json
│ │ ├── runner.js
│ │ ├── server.js
│ │ ├── stats.js
│ │ └── yarn.lock
│ ├── circleci
│ │ ├── add_build_info_json.sh
│ │ ├── bench.sh
│ │ ├── check_license.sh
│ │ ├── check_minified_errors.sh
│ │ ├── check_modules.sh
│ │ ├── pack_and_store_artifact.sh
│ │ ├── set_up_github_keys.sh
│ │ ├── test_coverage.sh
│ │ ├── test_print_warnings.sh
│ │ ├── update_package_versions.sh
│ │ └── upload_build.sh
│ ├── error-codes
│ │ ├── README.md
│ │ ├── Types.js
│ │ ├── __tests__
│ │ │ ├── __snapshots__
│ │ │ │ └── transform-error-messages.js.snap
│ │ │ ├── invertObject-test.js
│ │ │ └── transform-error-messages.js
│ │ ├── codes.json
│ │ ├── extract-errors.js
│ │ ├── invertObject.js
│ │ └── transform-error-messages.js
│ ├── eslint-rules
│ │ ├── README.md
│ │ ├── __tests__
│ │ │ ├── no-primitive-constructors-test.internal.js
│ │ │ ├── no-to-warn-dev-within-to-throw-test.internal.js
│ │ │ └── warning-and-invariant-args-test.internal.js
│ │ ├── index.js
│ │ ├── no-primitive-constructors.js
│ │ ├── no-to-warn-dev-within-to-throw.js
│ │ ├── package.json
│ │ └── warning-and-invariant-args.js
│ ├── eslint
│ │ └── index.js
│ ├── flow
│ │ ├── config
│ │ │ └── flowconfig
│ │ ├── createFlowConfigs.js
│ │ ├── environment.js
│ │ ├── react-native-host-hooks.js
│ │ └── runFlow.js
│ ├── git
│ │ └── pre-commit
│ ├── jest
│ │ ├── config.base.js
│ │ ├── config.build.js
│ │ ├── config.source-persistent.js
│ │ ├── config.source.js
│ │ ├── dont-run-jest-directly.js
│ │ ├── matchers
│ │ │ ├── __tests__
│ │ │ │ └── toWarnDev-test.js
│ │ │ ├── interactionTracingMatchers.js
│ │ │ ├── profilerMatchers.js
│ │ │ ├── reactTestMatchers.js
│ │ │ ├── schedulerTestMatchers.js
│ │ │ └── toWarnDev.js
│ │ ├── noHaste.js
│ │ ├── preprocessor.js
│ │ ├── setupEnvironment.js
│ │ ├── setupHostConfigs.js
│ │ ├── setupTests.build.js
│ │ ├── setupTests.js
│ │ ├── setupTests.persistent.js
│ │ ├── shouldIgnoreConsoleError.js
│ │ ├── spec-equivalence-reporter
│ │ │ └── setupTests.js
│ │ └── typescript
│ │ │ ├── jest.d.ts
│ │ │ └── preprocessor.js
│ ├── perf-counters
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── binding.gyp
│ │ ├── index.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── hardware-counter.cpp
│ │ │ ├── hardware-counter.h
│ │ │ ├── jsc-perf.cpp
│ │ │ ├── perf-counters.cpp
│ │ │ ├── portability.h
│ │ │ ├── thread-local.cpp
│ │ │ └── thread-local.h
│ ├── prettier
│ │ └── index.js
│ ├── print-warnings
│ │ ├── README.md
│ │ └── print-warnings.js
│ ├── release
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── ci-add-build-info-json.js
│ │ ├── ci-update-package-versions.js
│ │ ├── create-canary-commands
│ │ │ ├── add-build-info-json.js
│ │ │ ├── build-artifacts.js
│ │ │ ├── confirm-automated-testing.js
│ │ │ ├── copy-repo-to-temp-directory.js
│ │ │ ├── npm-pack-and-unpack.js
│ │ │ └── update-version-numbers.js
│ │ ├── create-canary.js
│ │ ├── package.json
│ │ ├── prepare-canary-commands
│ │ │ ├── check-environment-variables.js
│ │ │ ├── download-build-artifacts.js
│ │ │ ├── get-latest-master-build-number.js
│ │ │ └── parse-params.js
│ │ ├── prepare-canary.js
│ │ ├── prepare-stable-commands
│ │ │ ├── check-out-packages.js
│ │ │ ├── confirm-stable-version-numbers.js
│ │ │ ├── get-latest-canary-version.js
│ │ │ ├── guess-stable-version-numbers.js
│ │ │ ├── parse-params.js
│ │ │ └── update-stable-version-numbers.js
│ │ ├── prepare-stable.js
│ │ ├── publish-commands
│ │ │ ├── check-npm-permissions.js
│ │ │ ├── confirm-version-and-tags.js
│ │ │ ├── download-error-codes-from-ci.js
│ │ │ ├── parse-params.js
│ │ │ ├── print-follow-up-instructions.js
│ │ │ ├── prompt-for-otp.js
│ │ │ ├── publish-to-npm.js
│ │ │ ├── update-stable-version-numbers.js
│ │ │ └── validate-tags.js
│ │ ├── publish.js
│ │ ├── shared-commands
│ │ │ ├── print-prerelease-summary.js
│ │ │ ├── test-packaging-fixture.js
│ │ │ └── test-tracing-fixture.js
│ │ ├── snapshot-test.js
│ │ ├── snapshot-test.snapshot
│ │ ├── theme.js
│ │ ├── utils.js
│ │ └── yarn.lock
│ ├── rollup
│ │ ├── build.js
│ │ ├── bundles.js
│ │ ├── consolidateBundleSizes.js
│ │ ├── forks.js
│ │ ├── modules.js
│ │ ├── packaging.js
│ │ ├── plugins
│ │ │ ├── closure-plugin.js
│ │ │ ├── sizes-plugin.js
│ │ │ ├── strip-unused-imports.js
│ │ │ └── use-forks-plugin.js
│ │ ├── shims
│ │ │ ├── facebook-www
│ │ │ │ ├── ReactBrowserEventEmitter_DO_NOT_USE.js
│ │ │ │ ├── ReactDOMComponentTree_DO_NOT_USE.js
│ │ │ │ ├── ReactInstanceMap_DO_NOT_USE.js
│ │ │ │ ├── findDOMNode.js
│ │ │ │ └── renderSubtreeIntoContainer_DO_NOT_USE.js
│ │ │ └── react-native
│ │ │ │ ├── NativeMethodsMixin.js
│ │ │ │ ├── ReactFabric.js
│ │ │ │ ├── ReactFeatureFlags.js
│ │ │ │ ├── ReactNative.js
│ │ │ │ ├── ReactNativeViewConfigRegistry.js
│ │ │ │ └── createReactNativeComponentClass.js
│ │ ├── stats.js
│ │ ├── sync.js
│ │ ├── utils.js
│ │ ├── validate
│ │ │ ├── eslintignore
│ │ │ ├── eslintrc.cjs.js
│ │ │ ├── eslintrc.fb.js
│ │ │ ├── eslintrc.rn.js
│ │ │ ├── eslintrc.umd.js
│ │ │ └── index.js
│ │ └── wrappers.js
│ ├── shared
│ │ ├── __tests__
│ │ │ └── evalToString-test.js
│ │ ├── evalToString.js
│ │ ├── inlinedHostConfigs.js
│ │ ├── listChangedFiles.js
│ │ └── pathsByLanguageVersion.js
│ └── tasks
│ │ ├── danger.js
│ │ ├── eslint.js
│ │ ├── flow-ci.js
│ │ ├── flow.js
│ │ ├── linc.js
│ │ └── version-check.js
└── yarn.lock
├── test.html
├── test.ts
└── testCreateRef.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # Created by .ignore support plugin (hsz.mobi)
2 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/reactExplain.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Code of Conduct
2 |
3 | Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.fb.com/codeofconduct/) so that you can understand what actions will and will not be tolerated.
4 |
--------------------------------------------------------------------------------
/react16.8.6/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to React
2 |
3 | Want to contribute to React? There are a few things you need to know.
4 |
5 | We wrote a **[contribution guide](https://reactjs.org/contributing/how-to-contribute.html)** to help you get started.
6 |
--------------------------------------------------------------------------------
/react16.8.6/appveyor.yml:
--------------------------------------------------------------------------------
1 | image: Visual Studio 2017
2 |
3 | # Fix line endings in Windows. (runs before repo cloning)
4 | init:
5 | - git config --global core.autocrlf input
6 |
7 | environment:
8 | JAVA_HOME: C:\Program Files\Java\jdk1.8.0
9 | matrix:
10 | - nodejs_version: 10
11 |
12 | # Finish on first failed build
13 | matrix:
14 | fast_finish: true
15 |
16 | platform:
17 | - x64
18 |
19 | branches:
20 | only:
21 | - master
22 |
23 | # Disable Visual Studio build and deploy
24 | build: off
25 | deploy: off
26 |
27 | install:
28 | - ps: Install-Product node $env:nodejs_version $env:platform
29 | - yarn install --frozen-lockfile
30 |
31 | test_script:
32 | - node --version
33 | - yarn lint
34 | # - yarn flow-ci
35 | - yarn build
36 | - yarn test
37 | - yarn prettier
38 |
39 | cache:
40 | - node_modules
41 | - "%LOCALAPPDATA%/Yarn"
42 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/art/.gitignore:
--------------------------------------------------------------------------------
1 | bundle.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/art/README.md:
--------------------------------------------------------------------------------
1 | # VectorWidget example
2 |
3 | To try this example, run:
4 |
5 | ```
6 | yarn
7 | yarn build
8 | ```
9 |
10 | in this directory, then open index.html in your browser.
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/art/app.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var React = require('react');
4 | var ReactDOM = require('react-dom');
5 | var VectorWidget = require('./VectorWidget');
6 |
7 | ReactDOM.render(, document.getElementById('container'));
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/art/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | VectorWidget
5 |
6 |
7 |
8 |
9 |
If you're seeing this message, it means you haven't generated the bundle file for this example. Try running:
10 |
11 |
12 | npm install
13 | npm run build
14 |
15 |
16 |
then reload the page.
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/art/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "babel-core": "^6.24.0",
4 | "babel-loader": "^6.4.1",
5 | "babel-plugin-transform-class-properties": "^6.24.1",
6 | "babel-preset-es2015": "^6.6.0",
7 | "babel-preset-react": "^6.5.0",
8 | "react": "link:../../build/node_modules/react",
9 | "react-art": "link:../../build/node_modules/react-art/",
10 | "react-dom": "link:../../build/node_modules/react-dom",
11 | "webpack": "^1.14.0"
12 | },
13 | "scripts": {
14 | "build": "webpack app.js bundle.js"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | # production
10 | /build
11 | /public/react.development.js
12 | /public/react-dom.development.js
13 | /public/react-dom-server.browser.development.js
14 |
15 | # misc
16 | .DS_Store
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | npm-debug.log*
23 | yarn-debug.log*
24 | yarn-error.log*
25 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "attribute-behavior",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "file-saver": "^1.3.3",
7 | "glamor": "^2.20.40",
8 | "react": "^15.6.1",
9 | "react-dom": "^15.6.1",
10 | "react-scripts": "1.0.11",
11 | "react-virtualized": "^9.9.0"
12 | },
13 | "scripts": {
14 | "prestart":
15 | "cp ../../build/node_modules/react/umd/react.development.js public/ && cp ../../build/node_modules/react-dom/umd/react-dom.development.js public/ && cp ../../build/node_modules/react-dom/umd/react-dom-server.browser.development.js public/",
16 | "start": "react-scripts start",
17 | "build": "react-scripts build",
18 | "test": "react-scripts test --env=jsdom",
19 | "eject": "react-scripts eject"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/attribute-behavior/public/favicon.ico
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "192x192",
8 | "type": "image/png"
9 | }
10 | ],
11 | "start_url": "./index.html",
12 | "display": "standalone",
13 | "theme_color": "#000000",
14 | "background_color": "#ffffff"
15 | }
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | it('renders without crashing', () => {
6 | const div = document.createElement('div');
7 | ReactDOM.render(, div);
8 | });
9 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/src/index.css:
--------------------------------------------------------------------------------
1 | * {
2 | box-sizing: border-box;
3 | }
4 |
5 | body {
6 | font-family: monospace;
7 | font-size: 12px;
8 | }
9 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/attribute-behavior/src/index.js:
--------------------------------------------------------------------------------
1 | import './index.css';
2 | import React from 'react';
3 | import ReactDOM from 'react-dom';
4 | import App from './App';
5 |
6 | ReactDOM.render(, document.getElementById('root'));
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 | public/scheduler-unstable_mock.development.js
12 | public/scheduler-unstable_mock.production.min.js
13 | public/react.development.js
14 | public/react.production.min.js
15 | public/react-dom.development.js
16 | public/react-dom.production.min.js
17 | public/react-dom-server.browser.development.js
18 | public/react-dom-server.browser.production.min.js
19 | public/react-dom-test-utils.development.js
20 | public/react-dom-test-utils.production.min.js
21 |
22 | # misc
23 | .DS_Store
24 | .env
25 | npm-debug.log
26 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/README.md:
--------------------------------------------------------------------------------
1 | # DOM Fixtures
2 |
3 | A set of DOM test cases for quickly identifying browser issues.
4 |
5 | ## Setup
6 |
7 | To reference a local build of React, first run `yarn build` at the root
8 | of the React project. Then:
9 |
10 | ```
11 | cd fixtures/dom
12 | yarn
13 | yarn start
14 | ```
15 |
16 | The `start` command runs a script that copies over the local build of react into
17 | the public directory.
18 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/dom/public/favicon.ico
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/public/test.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/dom/public/test.mp4
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/App.js:
--------------------------------------------------------------------------------
1 | import Header from './Header';
2 | import Fixtures from './fixtures';
3 | import '../style.css';
4 |
5 | const React = window.React;
6 |
7 | class App extends React.Component {
8 | render() {
9 | return (
10 |
11 |
12 |
13 |
14 | );
15 | }
16 | }
17 |
18 | export default App;
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/Fixture.js:
--------------------------------------------------------------------------------
1 | import PropTypes from 'prop-types';
2 | const React = window.React;
3 |
4 | const propTypes = {
5 | children: PropTypes.node.isRequired,
6 | };
7 |
8 | class Fixture extends React.Component {
9 | render() {
10 | const {children} = this.props;
11 |
12 | return {children}
;
13 | }
14 | }
15 |
16 | Fixture.propTypes = propTypes;
17 |
18 | export default Fixture;
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/FixtureSet.js:
--------------------------------------------------------------------------------
1 | import PropTypes from 'prop-types';
2 | const React = window.React;
3 |
4 | const propTypes = {
5 | title: PropTypes.node.isRequired,
6 | description: PropTypes.node,
7 | };
8 |
9 | class FixtureSet extends React.Component {
10 | render() {
11 | const {title, description, children} = this.props;
12 |
13 | return (
14 |
15 |
{title}
16 | {description &&
{description}
}
17 |
18 | {children}
19 |
20 | );
21 | }
22 | }
23 |
24 | FixtureSet.propTypes = propTypes;
25 |
26 | export default FixtureSet;
27 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/IssueList.js:
--------------------------------------------------------------------------------
1 | const React = window.React;
2 |
3 | function csv(string) {
4 | return string.split(/\s*,\s*/);
5 | }
6 |
7 | export default function IssueList({issues}) {
8 | if (!issues) {
9 | return null;
10 | }
11 |
12 | if (typeof issues === 'string') {
13 | issues = csv(issues);
14 | }
15 |
16 | let links = issues.reduce((memo, issue, i) => {
17 | return memo.concat(
18 | i > 0 && i < issues.length ? ', ' : null,
19 |
20 | {issue}
21 |
22 | );
23 | }, []);
24 |
25 | return {links};
26 | }
27 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/event-pooling/index.js:
--------------------------------------------------------------------------------
1 | import FixtureSet from '../../FixtureSet';
2 | import MouseMove from './mouse-move';
3 | import Persistence from './persistence';
4 |
5 | const React = window.React;
6 |
7 | class EventPooling extends React.Component {
8 | render() {
9 | return (
10 |
11 |
12 |
13 |
14 | );
15 | }
16 | }
17 |
18 | export default EventPooling;
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/hydration/code-transformer.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Babel works across all browsers, however it requires many polyfills.
3 | */
4 |
5 | import 'core-js/es6/weak-map';
6 | import 'core-js/es6/weak-set';
7 | import 'core-js/es6/number';
8 | import 'core-js/es6/string';
9 | import 'core-js/es6/array';
10 | import 'core-js/modules/es6.object.set-prototype-of';
11 |
12 | import {transform} from '@babel/standalone';
13 |
14 | const presets = ['es2015', 'stage-3', 'react'];
15 |
16 | export function compile(raw) {
17 | return transform(raw, {presets}).code;
18 | }
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/hydration/data.js:
--------------------------------------------------------------------------------
1 | export const SAMPLE_CODE = `
2 | class Fixture extends React.Component {
3 | state = {
4 | value: 'asdf'
5 | }
6 |
7 | onChange(event) {
8 | this.setState({ value: event.target.value });
9 | }
10 |
11 | render() {
12 | const { value } = this.state;
13 |
14 | return (
15 |
19 | );
20 | }
21 | }
22 | `.trim();
23 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/mouse-events/index.js:
--------------------------------------------------------------------------------
1 | import FixtureSet from '../../FixtureSet';
2 | import MouseMovement from './mouse-movement';
3 |
4 | const React = window.React;
5 |
6 | class MouseEvents extends React.Component {
7 | render() {
8 | return (
9 |
10 |
11 |
12 | );
13 | }
14 | }
15 |
16 | export default MouseEvents;
17 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/pointer-events/drag.js:
--------------------------------------------------------------------------------
1 | import TestCase from '../../TestCase';
2 | import DragBox from './drag-box';
3 |
4 | const React = window.React;
5 |
6 | class Drag extends React.Component {
7 | render() {
8 | return (
9 |
10 |
11 | Drag the circle below with any pointer tool
12 |
13 |
14 |
15 | While dragging, the circle must have turn blue to indicate that a
16 | pointer capture was received.
17 |
18 |
19 |
20 |
21 | );
22 | }
23 | }
24 |
25 | export default Drag;
26 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/pointer-events/index.js:
--------------------------------------------------------------------------------
1 | import FixtureSet from '../../FixtureSet';
2 | import Drag from './drag';
3 | import Hover from './hover';
4 |
5 | const React = window.React;
6 |
7 | class PointerEvents extends React.Component {
8 | render() {
9 | return (
10 |
13 |
14 |
15 |
16 | );
17 | }
18 | }
19 |
20 | export default PointerEvents;
21 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/fixtures/selection-events/index.js:
--------------------------------------------------------------------------------
1 | import FixtureSet from '../../FixtureSet';
2 | import ReorderedInputsTestCase from './ReorderedInputsTestCase';
3 | import OnSelectEventTestCase from './OnSelectEventTestCase';
4 | const React = window.React;
5 |
6 | export default function SelectionEvents() {
7 | return (
8 |
15 |
16 |
17 |
18 | );
19 | }
20 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/components/propTypes.js:
--------------------------------------------------------------------------------
1 | import PropTypes from 'prop-types';
2 | import semver from 'semver';
3 |
4 | export function semverString(props, propName, componentName) {
5 | let version = props[propName];
6 |
7 | let error = PropTypes.string(...arguments);
8 | if (!error && version != null && !semver.valid(version))
9 | error = new Error(
10 | `\`${propName}\` should be a valid "semantic version" matching ` +
11 | 'an existing React version'
12 | );
13 |
14 | return error || null;
15 | }
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/find-dom-node.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides a standard way to access a DOM node across all versions of
3 | * React.
4 | */
5 |
6 | import {reactPaths} from './react-loader';
7 |
8 | const React = window.React;
9 | const ReactDOM = window.ReactDOM;
10 |
11 | export function findDOMNode(target) {
12 | const {needsReactDOM} = reactPaths();
13 |
14 | if (needsReactDOM) {
15 | return ReactDOM.findDOMNode(target);
16 | } else {
17 | // eslint-disable-next-line
18 | return React.findDOMNode(target);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/dom/src/index.js:
--------------------------------------------------------------------------------
1 | import './polyfills';
2 | import loadReact from './react-loader';
3 |
4 | loadReact()
5 | .then(() => import('./components/App'))
6 | .then(App => {
7 | const {React, ReactDOM} = window;
8 |
9 | ReactDOM.render(
10 | React.createElement(App.default),
11 | document.getElementById('root')
12 | );
13 | });
14 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/eslint/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "parserOptions": {
4 | "ecmaVersion": 8,
5 | "sourceType": "module",
6 | "ecmaFeatures": {
7 | "jsx": true
8 | }
9 | },
10 | "plugins": ["react-hooks"],
11 | "rules": {
12 | "react-hooks/rules-of-hooks": 2,
13 | "react-hooks/exhaustive-deps": 2
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/eslint/README.md:
--------------------------------------------------------------------------------
1 | # ESLint Playground Fixture
2 |
3 | This is an internal playground for quick iteration on our lint rules inside an IDE like VSCode.
4 |
5 | See instructions in `./index.js` in this directory.
6 |
7 | 
--------------------------------------------------------------------------------
/react16.8.6/fixtures/eslint/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "eslint-playground",
4 | "dependencies": {
5 | "eslint": "4.1.0",
6 | "eslint-plugin-react-hooks": "link:./proxy"
7 | },
8 | "scripts": {
9 | "start": "./watch.sh",
10 | "lint": "eslint index.js"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/eslint/proxy/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "version": "0.0.0"
4 | }
--------------------------------------------------------------------------------
/react16.8.6/fixtures/eslint/watch.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | (cd ../.. && yarn build eslint --type=NODE_DEV)
3 | (cd ../.. && watchman-make --make 'yarn build eslint --type=NODE_DEV' -p 'packages/eslint-plugin-*/**/*' -t ignored)
4 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/expiration/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | # production
10 | /build
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 |
23 | public/react.development.js
24 | public/react-dom.development.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/expiration/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "expiration-2",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "react": "^16.1.1",
7 | "react-dom": "^16.1.1",
8 | "react-scripts": "1.0.17"
9 | },
10 | "scripts": {
11 | "prestart":
12 | "cp ../../build/node_modules/react/umd/react.development.js public/ && cp ../../build/node_modules/react-dom/umd/react-dom.development.js public/",
13 | "start": "react-scripts start",
14 | "build": "react-scripts build",
15 | "test": "react-scripts test --env=jsdom",
16 | "eject": "react-scripts eject"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/.env:
--------------------------------------------------------------------------------
1 | NODE_PATH=../../build/packages
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 |
12 | # misc
13 | .DS_Store
14 | npm-debug.log
15 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-fiber-debugger",
3 | "version": "0.0.1",
4 | "private": true,
5 | "devDependencies": {
6 | "react-scripts": "0.9.5"
7 | },
8 | "dependencies": {
9 | "dagre": "^0.7.4",
10 | "pretty-format": "^4.2.1",
11 | "react-draggable": "^2.2.6",
12 | "react-motion": "^0.5.0"
13 | },
14 | "scripts": {
15 | "start": "react-scripts start",
16 | "build": "react-scripts build"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/fiber-debugger/public/favicon.ico
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | React App
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/src/index.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | margin: 0;
3 | padding: 0;
4 | font-family: sans-serif;
5 | height: 100vh;
6 | cursor: -webkit-grab; cursor: -moz-grab;
7 | }
8 |
9 | #root {
10 | height: 100vh;
11 | }
12 |
13 | * {
14 | box-sizing: border-box;
15 | }
--------------------------------------------------------------------------------
/react16.8.6/fixtures/fiber-debugger/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 | import './index.css';
5 |
6 | ReactDOM.render(, document.getElementById('root'));
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/babel-standalone/dev.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
2 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/dev/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "browserify-dev-fixture",
4 | "dependencies": {
5 | "browserify": "^13.3.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && browserify ./input.js -o output.js",
9 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
2 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/prod/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/browserify/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "browserify-prod-fixture",
4 | "dependencies": {
5 | "browserify": "^13.3.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && browserify ./input.js -g [envify --NODE_ENV 'production'] -o output.js",
9 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/"
10 | },
11 | "devDependencies": {
12 | "envify": "^4.0.0"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
2 | output.js.map
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/app/initialize.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/config.js:
--------------------------------------------------------------------------------
1 | exports.config = {
2 | paths: {
3 | public: '.',
4 | },
5 | files: {
6 | javascripts: {
7 | joinTo: 'output.js',
8 | },
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "brunch-dev-fixture",
4 | "devDependencies": {
5 | "brunch": "^2.9.1",
6 | "javascript-brunch": "^2.0.0"
7 | },
8 | "scripts": {
9 | "build": "rm -rf public && brunch build",
10 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
2 | output.js.map
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/app/initialize.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/config.js:
--------------------------------------------------------------------------------
1 | exports.config = {
2 | paths: {
3 | public: '.',
4 | },
5 | files: {
6 | javascripts: {
7 | joinTo: 'output.js',
8 | },
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/brunch/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "brunch-prod-fixture",
4 | "devDependencies": {
5 | "brunch": "^2.9.1",
6 | "javascript-brunch": "^2.0.0"
7 | },
8 | "scripts": {
9 | "build": "rm -rf public && brunch build -p",
10 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/globals/dev.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/globals/prod.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/requirejs/dev.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
20 |
21 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/requirejs/prod.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
20 |
21 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | baseUrl: '.',
3 | name: 'input',
4 | out: 'output.js',
5 | optimize: 'none',
6 | paths: {
7 | react: '../../../../build/node_modules/react/umd/react.development',
8 | 'react-dom':
9 | '../../../../build/node_modules/react-dom/umd/react-dom.development',
10 | schedule: '../../../../build/dist/schedule.development',
11 | },
12 | };
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/input.js:
--------------------------------------------------------------------------------
1 | require(['react', 'react-dom'], function(React, ReactDOM) {
2 | ReactDOM.render(
3 | React.createElement('h1', null, 'Hello World!'),
4 | document.getElementById('container')
5 | );
6 | });
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "rjs-dev-fixture",
4 | "dependencies": {
5 | "requirejs": "^2.3.2"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && r.js -o config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/dev/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | requirejs@^2.3.2:
6 | version "2.3.5"
7 | resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.5.tgz#617b9acbbcb336540ef4914d790323a8d4b861b0"
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | baseUrl: '.',
3 | name: 'input',
4 | out: 'output.js',
5 | optimize: 'none',
6 | paths: {
7 | react: '../../../../build/node_modules/react/umd/react.production.min',
8 | 'react-dom':
9 | '../../../../build/node_modules/react-dom/umd/react-dom.production.min',
10 | schedule: '../../../../build/dist/schedule.development',
11 | },
12 | };
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/input.js:
--------------------------------------------------------------------------------
1 | require(['react', 'react-dom'], function(React, ReactDOM) {
2 | ReactDOM.render(
3 | React.createElement('h1', null, 'Hello World!'),
4 | document.getElementById('container')
5 | );
6 | });
7 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "rjs-prod-fixture",
4 | "dependencies": {
5 | "requirejs": "^2.3.2"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && r.js -o config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/rjs/prod/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | requirejs@^2.3.2:
6 | version "2.3.5"
7 | resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.5.tgz#617b9acbbcb336540ef4914d790323a8d4b861b0"
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/build.js:
--------------------------------------------------------------------------------
1 | var Builder = require('systemjs-builder');
2 |
3 | var builder = new Builder('/', './config.js');
4 | builder
5 | .buildStatic('./input.js', './output.js')
6 | .then(function() {
7 | console.log('Build complete');
8 | })
9 | .catch(function(err) {
10 | console.log('Build error');
11 | console.log(err);
12 | });
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/config.js:
--------------------------------------------------------------------------------
1 | System.config({
2 | paths: {
3 | react: '../../../../build/node_modules/react/umd/react.development.js',
4 | 'react-dom':
5 | '../../../../build/node_modules/react-dom/umd/react-dom.development.js',
6 | schedule: '../../../../build/dist/schedule.development',
7 | },
8 | });
9 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/input.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "systemjs-dev-fixture",
4 | "dependencies": {
5 | "systemjs-builder": "^0.15.34"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && node build.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/build.js:
--------------------------------------------------------------------------------
1 | var Builder = require('systemjs-builder');
2 |
3 | var builder = new Builder('/', './config.js');
4 | builder
5 | .buildStatic('./input.js', './output.js')
6 | .then(function() {
7 | console.log('Build complete');
8 | })
9 | .catch(function(err) {
10 | console.log('Build error');
11 | console.log(err);
12 | });
13 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/config.js:
--------------------------------------------------------------------------------
1 | System.config({
2 | paths: {
3 | react: '../../../../build/node_modules/react/umd/react.production.min.js',
4 | 'react-dom':
5 | '../../../../build/node_modules/react-dom/umd/react-dom.production.min.js',
6 | schedule: '../../../../build/dist/schedule.development',
7 | },
8 | });
9 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/input.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs-builder/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "systemjs-prod-fixture",
4 | "dependencies": {
5 | "systemjs-builder": "^0.15.34"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && node build.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs/dev.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
26 |
27 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/systemjs/prod.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
26 |
27 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/dev/config.js:
--------------------------------------------------------------------------------
1 | var path = require('path');
2 |
3 | module.exports = {
4 | entry: './input',
5 | output: {
6 | filename: 'output.js',
7 | },
8 | resolve: {
9 | root: path.resolve('../../../../build/node_modules'),
10 | alias: {
11 | react: 'react/umd/react.development',
12 | 'react-dom': 'react-dom/umd/react-dom.development',
13 | },
14 | },
15 | };
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/dev/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "webpack-alias-dev-fixture",
4 | "dependencies": {
5 | "webpack": "^1.14.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && webpack --config config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/prod/config.js:
--------------------------------------------------------------------------------
1 | var path = require('path');
2 |
3 | module.exports = {
4 | entry: './input',
5 | output: {
6 | filename: 'output.js',
7 | },
8 | resolve: {
9 | root: path.resolve('../../../../build/node_modules'),
10 | alias: {
11 | react: 'react/umd/react.production.min',
12 | 'react-dom': 'react-dom/umd/react-dom.production.min',
13 | },
14 | },
15 | };
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/prod/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack-alias/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "webpack-alias-prod-fixture",
4 | "dependencies": {
5 | "webpack": "^1.14.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && webpack --config config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/dev/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/dev/config.js:
--------------------------------------------------------------------------------
1 | var path = require('path');
2 |
3 | module.exports = {
4 | entry: './input',
5 | output: {
6 | filename: 'output.js',
7 | },
8 | resolve: {
9 | root: path.resolve('../../../../build/node_modules/'),
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/dev/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/dev/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "webpack-dev-fixture",
4 | "dependencies": {
5 | "webpack": "^1.14.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && webpack --config config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/prod/.gitignore:
--------------------------------------------------------------------------------
1 | output.js
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/prod/config.js:
--------------------------------------------------------------------------------
1 | var path = require('path');
2 | var webpack = require('webpack');
3 |
4 | module.exports = {
5 | entry: './input',
6 | output: {
7 | filename: 'output.js',
8 | },
9 | resolve: {
10 | root: path.resolve('../../../../build/node_modules/'),
11 | },
12 | plugins: [
13 | new webpack.DefinePlugin({
14 | 'process.env': {
15 | NODE_ENV: JSON.stringify('production'),
16 | },
17 | }),
18 | ],
19 | };
20 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/prod/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/prod/input.js:
--------------------------------------------------------------------------------
1 | var React = require('react');
2 | var ReactDOM = require('react-dom');
3 |
4 | ReactDOM.render(
5 | React.createElement('h1', null, 'Hello World!'),
6 | document.getElementById('container')
7 | );
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/packaging/webpack/prod/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "webpack-prod-fixture",
4 | "dependencies": {
5 | "webpack": "^1.14.0"
6 | },
7 | "scripts": {
8 | "build": "rm -f output.js && webpack --config config.js"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/ssr/public/favicon.ico
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/server/render.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {renderToString} from 'react-dom/server';
3 |
4 | import App from '../src/components/App';
5 |
6 | let assets;
7 | if (process.env.NODE_ENV === 'development') {
8 | // Use the bundle from create-react-app's server in development mode.
9 | assets = {
10 | 'main.js': '/static/js/bundle.js',
11 | 'main.css': '',
12 | };
13 | } else {
14 | assets = require('../build/asset-manifest.json');
15 | }
16 |
17 | export default function render() {
18 | var html = renderToString();
19 | // There's no way to render a doctype in React so prepend manually.
20 | // Also append a bootstrap script tag.
21 | return '' + html;
22 | }
23 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/components/Chrome.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 10px;
3 | padding: 0;
4 | font-family: sans-serif;
5 | }
6 |
7 | body.light {
8 | background-color: #FFFFFF;
9 | color: #333333;
10 | }
11 |
12 | body.dark {
13 | background-color: #000000;
14 | color: #CCCCCC;
15 | }
16 |
17 | .light-loading {
18 | margin: 10px 0;
19 | padding: 10px;
20 | background-color: #CCCCCC;
21 | color: #666666;
22 | }
23 |
24 | .dark-loading {
25 | margin: 10px 0;
26 | padding: 10px;
27 | background-color: #333333;
28 | color: #999999;
29 | }
30 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/components/Page.css:
--------------------------------------------------------------------------------
1 | .link {
2 | font-weight: bold;
3 | cursor: pointer;
4 | }
5 | .light-box {
6 | margin: 10px 0;
7 | padding: 10px;
8 | background-color: #CCCCCC;
9 | color: #333333;
10 | }
11 | .dark-box {
12 | margin: 10px 0;
13 | padding: 10px;
14 | background-color: #333333;
15 | color: #CCCCCC;
16 | }
17 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/components/Page2.js:
--------------------------------------------------------------------------------
1 | import React, {useContext} from 'react';
2 |
3 | import Theme from './Theme';
4 | import Suspend from './Suspend';
5 |
6 | import './Page.css';
7 |
8 | export default function Page2() {
9 | let theme = useContext(Theme);
10 | return (
11 |
12 | Content of a different page
13 |
14 | );
15 | }
16 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/components/Suspend.js:
--------------------------------------------------------------------------------
1 | let promise = null;
2 | let isResolved = false;
3 |
4 | export default function Suspend({children}) {
5 | // This will suspend the content from rendering but only on the client.
6 | // This is used to demo a slow loading app.
7 | if (typeof window === 'object') {
8 | if (!isResolved) {
9 | if (promise === null) {
10 | promise = new Promise(resolve => {
11 | setTimeout(() => {
12 | isResolved = true;
13 | resolve();
14 | }, 6000);
15 | });
16 | }
17 | throw promise;
18 | }
19 | }
20 | return children;
21 | }
22 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/components/Theme.js:
--------------------------------------------------------------------------------
1 | import React, {createContext, useContext, useState} from 'react';
2 |
3 | const Theme = createContext('light');
4 |
5 | export default Theme;
6 |
7 | export function ThemeToggleButton({onChange}) {
8 | let theme = useContext(Theme);
9 | let [targetTheme, setTargetTheme] = useState(theme);
10 | function toggleTheme() {
11 | let newTheme = theme === 'light' ? 'dark' : 'light';
12 | // High pri, responsive update.
13 | setTargetTheme(newTheme);
14 | // Perform the actual theme change in a separate update.
15 | setTimeout(() => onChange(newTheme), 0);
16 | }
17 | if (targetTheme !== theme) {
18 | return 'Switching to ' + targetTheme + '...';
19 | }
20 | return (
21 |
22 | Switch to {theme === 'light' ? 'Dark' : 'Light'} theme
23 |
24 | );
25 | }
26 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/ssr/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {unstable_createRoot} from 'react-dom';
3 |
4 | import App from './components/App';
5 |
6 | let root = unstable_createRoot(document, {hydrate: true});
7 | root.render();
8 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/tracing/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test tracing UMD
6 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/unstable-async/time-slicing/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | # production
10 | /build
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/unstable-async/time-slicing/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cpu-demo",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "glamor": "^2.20.40",
7 | "react-markdown": "^3.2.0",
8 | "react-scripts": "^1.1.4",
9 | "victory": "^0.25.6"
10 | },
11 | "scripts": {
12 | "prestart": "cp -r ../../../build/node_modules/* ./node_modules/",
13 | "prebuild": "cp -r ../../../build/node_modules/* ./node_modules/",
14 | "start": "react-scripts start",
15 | "build": "react-scripts build",
16 | "test": "react-scripts test --env=jsdom",
17 | "eject": "react-scripts eject"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/react16.8.6/fixtures/unstable-async/time-slicing/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AttackXiaoJinJin/reactExplain/f68d8f5fd93a20dbb51b1971a9a6eed8a9414eb6/react16.8.6/fixtures/unstable-async/time-slicing/public/favicon.ico
--------------------------------------------------------------------------------
/react16.8.6/fixtures/unstable-async/time-slicing/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | }
10 | ],
11 | "start_url": "./index.html",
12 | "display": "standalone",
13 | "theme_color": "#000000",
14 | "background_color": "#ffffff"
15 | }
16 |
--------------------------------------------------------------------------------
/react16.8.6/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | base = ""
3 | publish = "fixtures/dom/build"
4 | command = "yarn build --type=UMD_DEV && cd fixtures/dom/ && yarn && yarn prestart && yarn build"
5 |
6 | [[redirects]]
7 | from = "/*"
8 | to = "/index.html"
9 | status = 200
10 |
--------------------------------------------------------------------------------
/react16.8.6/packages/create-subscription/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | export * from './src/createSubscription';
13 |
--------------------------------------------------------------------------------
/react16.8.6/packages/create-subscription/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/create-subscription.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/create-subscription.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/create-subscription/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "create-subscription",
3 | "description": "utility for subscribing to external data sources inside React components",
4 | "version": "16.8.6",
5 | "repository": {
6 | "type": "git",
7 | "url": "https://github.com/facebook/react.git",
8 | "directory": "packages/create-subscription"
9 | },
10 | "files": [
11 | "LICENSE",
12 | "README.md",
13 | "build-info.json",
14 | "index.js",
15 | "cjs/"
16 | ],
17 | "peerDependencies": {
18 | "react": "^16.3.0"
19 | },
20 | "devDependencies": {
21 | "rxjs": "^5.5.6"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/react16.8.6/packages/eslint-plugin-react-hooks/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | module.exports = require('./src/index');
11 |
--------------------------------------------------------------------------------
/react16.8.6/packages/eslint-plugin-react-hooks/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | // TODO: this doesn't make sense for an ESLint rule.
4 | // We need to fix our build process to not create bundles for "raw" packages like this.
5 | if (process.env.NODE_ENV === 'production') {
6 | module.exports = require('./cjs/eslint-plugin-react-hooks.production.min.js');
7 | } else {
8 | module.exports = require('./cjs/eslint-plugin-react-hooks.development.js');
9 | }
10 |
--------------------------------------------------------------------------------
/react16.8.6/packages/eslint-plugin-react-hooks/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "eslint-plugin-react-hooks",
3 | "description": "ESLint rules for React Hooks",
4 | "version": "1.6.1",
5 | "repository": {
6 | "type": "git",
7 | "url": "https://github.com/facebook/react.git",
8 | "directory": "packages/eslint-plugin-react-hooks"
9 | },
10 | "files": [
11 | "LICENSE",
12 | "README.md",
13 | "build-info.json",
14 | "index.js",
15 | "cjs"
16 | ],
17 | "keywords": [
18 | "eslint",
19 | "eslint-plugin",
20 | "eslintplugin",
21 | "react"
22 | ],
23 | "license": "MIT",
24 | "bugs": {
25 | "url": "https://github.com/facebook/react/issues"
26 | },
27 | "engines": {
28 | "node": ">=7"
29 | },
30 | "homepage": "https://reactjs.org/",
31 | "peerDependencies": {
32 | "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/react16.8.6/packages/eslint-plugin-react-hooks/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | import RuleOfHooks from './RulesOfHooks';
11 | import ExhaustiveDeps from './ExhaustiveDeps';
12 |
13 | export const rules = {
14 | 'rules-of-hooks': RuleOfHooks,
15 | 'exhaustive-deps': ExhaustiveDeps,
16 | };
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/events/EventSystemFlags.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | export type EventSystemFlags = number;
11 |
12 | export const PLUGIN_EVENT_SYSTEM = 1;
13 | export const RESPONDER_EVENT_SYSTEM = 1 << 1;
14 | export const IS_PASSIVE = 1 << 2;
15 | export const IS_ACTIVE = 1 << 3;
16 | export const PASSIVE_NOT_SUPPORTED = 1 << 4;
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/events/ResponderSyntheticEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from './SyntheticEvent';
9 |
10 | /**
11 | * `touchHistory` isn't actually on the native event, but putting it in the
12 | * interface will ensure that it is cleaned up when pooled/destroyed. The
13 | * `ResponderEventPlugin` will populate it appropriately.
14 | */
15 | const ResponderSyntheticEvent = SyntheticEvent.extend({
16 | touchHistory: function(nativeEvent) {
17 | return null; // Actually doesn't even look at the native event.
18 | },
19 | });
20 |
21 | export default ResponderSyntheticEvent;
22 |
--------------------------------------------------------------------------------
/react16.8.6/packages/events/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "events",
4 | "version": "0.0.0"
5 | }
6 |
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-mock-scheduler/README.md:
--------------------------------------------------------------------------------
1 | # `jest-mock-scheduler`
2 |
3 | Jest matchers and utilities for testing the `scheduler` package.
4 |
5 | This package is experimental. APIs may change between releases.
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-mock-scheduler/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('scheduler/unstable_mock');
4 |
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-mock-scheduler/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jest-mock-scheduler",
3 | "private": true,
4 | "version": "0.1.0",
5 | "description": "Jest matchers and utilities for testing the scheduler package.",
6 | "main": "index.js",
7 | "repository": {
8 | "type" : "git",
9 | "url" : "https://github.com/facebook/react.git",
10 | "directory": "packages/jest-mock-scheduler"
11 | },
12 | "keywords": [
13 | "jest",
14 | "scheduler"
15 | ],
16 | "license": "MIT",
17 | "bugs": {
18 | "url": "https://github.com/facebook/react/issues"
19 | },
20 | "homepage": "https://reactjs.org/",
21 | "peerDependencies": {
22 | "jest": "^23.0.1",
23 | "scheduler": "^0.11.0"
24 | },
25 | "files": [
26 | "LICENSE",
27 | "README.md",
28 | "build-info.json",
29 | "index.js",
30 | "cjs/"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-react/README.md:
--------------------------------------------------------------------------------
1 | # `jest-react`
2 |
3 | Jest matchers and utilities for testing React Test Renderer.
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-react/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | export * from './src/JestReact';
11 |
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-react/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/jest-react.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/jest-react.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/jest-react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jest-react",
3 | "version": "0.6.6",
4 | "description": "Jest matchers and utilities for testing React components.",
5 | "main": "index.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "https://github.com/facebook/react.git",
9 | "directory": "packages/jest-react"
10 | },
11 | "keywords": [
12 | "react",
13 | "jest",
14 | "react-testing"
15 | ],
16 | "license": "MIT",
17 | "bugs": {
18 | "url": "https://github.com/facebook/react/issues"
19 | },
20 | "homepage": "https://reactjs.org/",
21 | "peerDependencies": {
22 | "jest": "^23.0.1",
23 | "react": "^16.0.0",
24 | "react-test-renderer": "^16.0.0"
25 | },
26 | "files": [
27 | "LICENSE",
28 | "README.md",
29 | "build-info.json",
30 | "index.js",
31 | "cjs/"
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/Circle.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const Circle = require('./npm/Circle');
13 |
14 | module.exports = Circle;
15 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/README.md:
--------------------------------------------------------------------------------
1 | # React ART
2 |
3 | React ART is a JavaScript library for drawing vector graphics using [React](https://github.com/facebook/react/).
4 |
5 | It provides declarative and reactive bindings to the [ART library](https://github.com/sebmarkbage/art/).
6 |
7 | Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8).
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/Rectangle.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const Rectangle = require('./npm/Rectangle');
13 |
14 | module.exports = Rectangle;
15 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/Wedge.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const Wedge = require('./npm/Wedge');
13 |
14 | module.exports = Wedge;
15 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const ReactART = require('./src/ReactART');
13 |
14 | module.exports = ReactART;
15 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-art/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-art.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-art.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-cache/README.md:
--------------------------------------------------------------------------------
1 | # react-cache
2 |
3 | A basic cache for React applications. It also serves as a reference for more
4 | advanced caching implementations.
5 |
6 | This package is meant to be used alongside yet-to-be-released, experimental
7 | React features. It's unlikely to be useful in any other context.
8 |
9 | **Do not use in a real application.** We're publishing this early for
10 | demonstration purposes.
11 |
12 | **Use it at your own risk.**
13 |
14 | # No, Really, It Is Unstable
15 |
16 | The API ~~may~~ will change wildly between versions.
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-cache/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | export * from './src/ReactCache';
13 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-cache/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-cache.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-cache.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-cache/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "react-cache",
4 | "description": "A basic cache for React applications",
5 | "version": "2.0.0-alpha.0",
6 | "repository": {
7 | "type" : "git",
8 | "url" : "https://github.com/facebook/react.git",
9 | "directory": "packages/react-cache"
10 | },
11 | "files": [
12 | "LICENSE",
13 | "README.md",
14 | "build-info.json",
15 | "index.js",
16 | "cjs/",
17 | "umd/"
18 | ],
19 | "peerDependencies": {
20 | "react": "^16.3.0-alpha.1"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-debug-tools/README.md:
--------------------------------------------------------------------------------
1 | # react-debug-tools
2 |
3 | This is an experimental package for debugging React renderers.
4 |
5 | **Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.**
6 |
7 | **Use it at your own risk.**
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-debug-tools/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | const ReactDebugTools = require('./src/ReactDebugTools');
11 |
12 | // This is hacky but makes it work with both Rollup and Jest.
13 | module.exports = ReactDebugTools.default || ReactDebugTools;
14 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-debug-tools/npm/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-debug-tools.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-debug-tools.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-debug-tools/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "react-debug-tools",
4 | "description": "React package for debugging React trees.",
5 | "version": "0.16.0",
6 | "keywords": [
7 | "react"
8 | ],
9 | "homepage": "https://reactjs.org/",
10 | "bugs": "https://github.com/facebook/react/issues",
11 | "license": "MIT",
12 | "files": [
13 | "LICENSE",
14 | "README.md",
15 | "build-info.json",
16 | "index.js",
17 | "cjs/"
18 | ],
19 | "main": "index.js",
20 | "repository": {
21 | "type" : "git",
22 | "url" : "https://github.com/facebook/react.git",
23 | "directory": "packages/react-debug-tools"
24 | },
25 | "engines": {
26 | "node": ">=0.10.0"
27 | },
28 | "peerDependencies": {
29 | "react": "^16.0.0"
30 | },
31 | "dependencies": {
32 | "error-stack-parser": "^2.0.2"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-debug-tools/src/ReactDebugTools.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | import {inspectHooks, inspectHooksOfFiber} from './ReactDebugHooks';
11 |
12 | export {inspectHooks, inspectHooksOfFiber};
13 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/index.fb.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | const ReactDOMFB = require('./src/client/ReactDOMFB');
11 |
12 | // TODO: decide on the top-level export form.
13 | // This is hacky but makes it work with both Rollup and Jest.
14 | module.exports = ReactDOMFB.default || ReactDOMFB;
15 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const ReactDOM = require('./src/client/ReactDOM');
13 |
14 | // TODO: decide on the top-level export form.
15 | // This is hacky but makes it work with both Rollup and Jest.
16 | module.exports = ReactDOM.default || ReactDOM;
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/server.browser.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-server.browser.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-server.browser.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/server.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('./server.node');
4 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/server.node.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-server.node.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-server.node.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/test-utils.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-test-utils.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-test-utils.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/unstable-fizz.browser.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-unstable-fizz.browser.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-unstable-fizz.browser.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/unstable-fizz.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('./unstable-fizz.node');
4 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/unstable-fizz.node.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-unstable-fizz.node.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-unstable-fizz.node.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/npm/unstable-native-dependencies.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | if (process.env.NODE_ENV === 'production') {
4 | module.exports = require('./cjs/react-dom-unstable-native-dependencies.production.min.js');
5 | } else {
6 | module.exports = require('./cjs/react-dom-unstable-native-dependencies.development.js');
7 | }
8 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/server.browser.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const ReactDOMServer = require('./src/server/ReactDOMServerBrowser');
13 |
14 | // TODO: decide on the top-level export form.
15 | // This is hacky but makes it work with both Rollup and Jest
16 | module.exports = ReactDOMServer.default || ReactDOMServer;
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/server.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | module.exports = require('./server.node');
13 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/server.node.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | 'use strict';
11 |
12 | const ReactDOMServer = require('./src/server/ReactDOMServerNode');
13 |
14 | // TODO: decide on the top-level export form.
15 | // This is hacky but makes it work with both Rollup and Jest
16 | module.exports = ReactDOMServer.default || ReactDOMServer;
17 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/client/getActiveElement.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | export default function getActiveElement(doc: ?Document): ?Element {
11 | doc = doc || (typeof document !== 'undefined' ? document : undefined);
12 | if (typeof doc === 'undefined') {
13 | return null;
14 | }
15 | try {
16 | return doc.activeElement || doc.body;
17 | } catch (e) {
18 | return doc.body;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticAnimationEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | /**
11 | * @interface Event
12 | * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
13 | * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
14 | */
15 | const SyntheticAnimationEvent = SyntheticEvent.extend({
16 | animationName: null,
17 | elapsedTime: null,
18 | pseudoElement: null,
19 | });
20 |
21 | export default SyntheticAnimationEvent;
22 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticClipboardEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | /**
11 | * @interface Event
12 | * @see http://www.w3.org/TR/clipboard-apis/
13 | */
14 | const SyntheticClipboardEvent = SyntheticEvent.extend({
15 | clipboardData: function(event) {
16 | return 'clipboardData' in event
17 | ? event.clipboardData
18 | : window.clipboardData;
19 | },
20 | });
21 |
22 | export default SyntheticClipboardEvent;
23 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticCompositionEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | /**
11 | * @interface Event
12 | * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
13 | */
14 | const SyntheticCompositionEvent = SyntheticEvent.extend({
15 | data: null,
16 | });
17 |
18 | export default SyntheticCompositionEvent;
19 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticDragEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticMouseEvent from './SyntheticMouseEvent';
9 |
10 | /**
11 | * @interface DragEvent
12 | * @see http://www.w3.org/TR/DOM-Level-3-Events/
13 | */
14 | const SyntheticDragEvent = SyntheticMouseEvent.extend({
15 | dataTransfer: null,
16 | });
17 |
18 | export default SyntheticDragEvent;
19 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticFocusEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticUIEvent from './SyntheticUIEvent';
9 |
10 | /**
11 | * @interface FocusEvent
12 | * @see http://www.w3.org/TR/DOM-Level-3-Events/
13 | */
14 | const SyntheticFocusEvent = SyntheticUIEvent.extend({
15 | relatedTarget: null,
16 | });
17 |
18 | export default SyntheticFocusEvent;
19 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticInputEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | /**
11 | * @interface Event
12 | * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
13 | * /#events-inputevents
14 | */
15 | const SyntheticInputEvent = SyntheticEvent.extend({
16 | data: null,
17 | });
18 |
19 | export default SyntheticInputEvent;
20 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticPointerEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticMouseEvent from './SyntheticMouseEvent';
9 |
10 | /**
11 | * @interface PointerEvent
12 | * @see http://www.w3.org/TR/pointerevents/
13 | */
14 | const SyntheticPointerEvent = SyntheticMouseEvent.extend({
15 | pointerId: null,
16 | width: null,
17 | height: null,
18 | pressure: null,
19 | tangentialPressure: null,
20 | tiltX: null,
21 | tiltY: null,
22 | twist: null,
23 | pointerType: null,
24 | isPrimary: null,
25 | });
26 |
27 | export default SyntheticPointerEvent;
28 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticTouchEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticUIEvent from './SyntheticUIEvent';
9 | import getEventModifierState from './getEventModifierState';
10 |
11 | /**
12 | * @interface TouchEvent
13 | * @see http://www.w3.org/TR/touch-events/
14 | */
15 | const SyntheticTouchEvent = SyntheticUIEvent.extend({
16 | touches: null,
17 | targetTouches: null,
18 | changedTouches: null,
19 | altKey: null,
20 | metaKey: null,
21 | ctrlKey: null,
22 | shiftKey: null,
23 | getModifierState: getEventModifierState,
24 | });
25 |
26 | export default SyntheticTouchEvent;
27 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticTransitionEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | /**
11 | * @interface Event
12 | * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
13 | * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
14 | */
15 | const SyntheticTransitionEvent = SyntheticEvent.extend({
16 | propertyName: null,
17 | elapsedTime: null,
18 | pseudoElement: null,
19 | });
20 |
21 | export default SyntheticTransitionEvent;
22 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/events/SyntheticUIEvent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import SyntheticEvent from 'events/SyntheticEvent';
9 |
10 | const SyntheticUIEvent = SyntheticEvent.extend({
11 | view: null,
12 | detail: null,
13 | });
14 |
15 | export default SyntheticUIEvent;
16 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/server/ReactDOMFizzServerFormatConfig.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | import {convertStringToBuffer} from 'react-stream/src/ReactFizzHostConfig';
11 |
12 | export function formatChunk(type: string, props: Object): Uint8Array {
13 | let str = '<' + type + '>';
14 | if (typeof props.children === 'string') {
15 | str += props.children;
16 | }
17 | str += '' + type + '>';
18 | return convertStringToBuffer(str);
19 | }
20 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/server/ReactDOMServerNode.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import ReactVersion from 'shared/ReactVersion';
9 |
10 | import {renderToString, renderToStaticMarkup} from './ReactDOMStringRenderer';
11 | import {
12 | renderToNodeStream,
13 | renderToStaticNodeStream,
14 | } from './ReactDOMNodeStreamRenderer';
15 |
16 | // Note: when changing this, also consider https://github.com/facebook/react/issues/11526
17 | export default {
18 | renderToString,
19 | renderToStaticMarkup,
20 | renderToNodeStream,
21 | renderToStaticNodeStream,
22 | version: ReactVersion,
23 | };
24 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/server/quoteAttributeValueForBrowser.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import escapeTextForBrowser from './escapeTextForBrowser';
9 |
10 | /**
11 | * Escapes attribute value to prevent scripting attacks.
12 | *
13 | * @param {*} value Value to escape.
14 | * @return {string} An escaped string.
15 | */
16 | function quoteAttributeValueForBrowser(value) {
17 | return '"' + escapeTextForBrowser(value) + '"';
18 | }
19 |
20 | export default quoteAttributeValueForBrowser;
21 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/shared/HTMLNodeType.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | /**
11 | * HTML nodeType values that represent the type of the node
12 | */
13 |
14 | export const ELEMENT_NODE = 1;
15 | export const TEXT_NODE = 3;
16 | export const COMMENT_NODE = 8;
17 | export const DOCUMENT_NODE = 9;
18 | export const DOCUMENT_FRAGMENT_NODE = 11;
19 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/shared/checkReact.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | *
7 | * @flow
8 | */
9 |
10 | import React from 'react';
11 | import invariant from 'shared/invariant';
12 |
13 | invariant(
14 | React,
15 | 'ReactDOM was loaded before React. Make sure you load ' +
16 | 'the React package before loading ReactDOM.',
17 | );
18 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/shared/createMicrosoftUnsafeLocalFunction.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | /* globals MSApp */
9 |
10 | /**
11 | * Create a function which has 'unsafe' privileges (required by windows8 apps)
12 | */
13 | const createMicrosoftUnsafeLocalFunction = function(func) {
14 | if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
15 | return function(arg0, arg1, arg2, arg3) {
16 | MSApp.execUnsafeLocalFunction(function() {
17 | return func(arg0, arg1, arg2, arg3);
18 | });
19 | };
20 | } else {
21 | return func;
22 | }
23 | };
24 |
25 | export default createMicrosoftUnsafeLocalFunction;
26 |
--------------------------------------------------------------------------------
/react16.8.6/packages/react-dom/src/shared/voidElementTags.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import omittedCloseTags from './omittedCloseTags';
9 |
10 | // For HTML, certain tags cannot have children. This has the same purpose as
11 | // `omittedCloseTags` except that `menuitem` should still have its closing tag.
12 | //有些 html 标签是不能有子节点的,比如空标签
、
13 | //