pax_global_header00006660000000000000000000000064132073524630014517gustar00rootroot0000000000000052 comment=edb2b3d3a70bbb6a26670673ac805df34ac23382
react-16.2.0/000077500000000000000000000000001320735246300127035ustar00rootroot00000000000000react-16.2.0/.babelrc000066400000000000000000000016321320735246300143000ustar00rootroot00000000000000{
"presets": ["react"],
"ignore": ["third_party"],
"plugins": [
"transform-class-properties",
"syntax-trailing-function-commas",
["transform-object-rest-spread", { "useBuiltIns": true }],
"transform-es2015-template-literals",
"transform-es2015-literals",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
["transform-es2015-classes", { "loose": true }],
"transform-es2015-object-super",
"transform-es2015-shorthand-properties",
"transform-es2015-computed-properties",
"transform-es2015-for-of",
"check-es2015-constants",
["transform-es2015-spread", { "loose": true }],
"transform-es2015-parameters",
["transform-es2015-destructuring", { "loose": true }],
["transform-es2015-block-scoping", { "throwIfClosureRequired": true }],
"transform-es3-member-expression-literals",
"transform-es3-property-literals"
]
}
react-16.2.0/.circleci/000077500000000000000000000000001320735246300145365ustar00rootroot00000000000000react-16.2.0/.circleci/config.yml000066400000000000000000000016761320735246300165400ustar00rootroot00000000000000version: 2
jobs:
build:
docker:
- image: circleci/node:8
environment:
TZ: /usr/share/zoneinfo/America/Los_Angeles
TRAVIS_REPO_SLUG: facebook/react
parallelism: 4
steps:
- checkout
- run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7
- restore_cache:
name: Restore node_modules cache
keys:
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-node-{{ arch }}-{{ .Branch }}-
- v1-node-{{ arch }}-
- run:
name: Nodejs Version
command: node --version
- run:
name: Install Packages
command: yarn install
- run:
name: Test Packages
command: ./scripts/circleci/test_entry_point.sh
- save_cache:
name: Save node_modules cache
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
react-16.2.0/.editorconfig000066400000000000000000000004451320735246300153630ustar00rootroot00000000000000# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[COMMIT_EDITMSG]
max_line_length = 0
react-16.2.0/.eslintignore000066400000000000000000000003231320735246300154040ustar00rootroot00000000000000# Third party
**/node_modules
# Not written by hand
packages/react-art/npm/lib
# Build products
build/
coverage/
fixtures/
scripts/bench/benchmarks/**/*.js
# React repository clone
scripts/bench/remote-repo/
react-16.2.0/.eslintrc.js000066400000000000000000000036301320735246300151440ustar00rootroot00000000000000'use strict';
const OFF = 0;
const ERROR = 2;
module.exports = {
extends: 'fbjs',
plugins: [
'react',
'react-internal',
],
// We're stricter than the default config, mostly. We'll override a few rules
// and then enable some React specific ones.
rules: {
'accessor-pairs': OFF,
'brace-style': [ERROR, '1tbs'],
'comma-dangle': [ERROR, 'always-multiline'],
'consistent-return': OFF,
'dot-location': [ERROR, 'property'],
'dot-notation': ERROR,
'eol-last': ERROR,
'eqeqeq': [ERROR, 'allow-null'],
'indent': OFF,
'jsx-quotes': [ERROR, 'prefer-double'],
'keyword-spacing': [ERROR, {after: true, before: true}],
'no-bitwise': OFF,
'no-inner-declarations': [ERROR, 'functions'],
'no-multi-spaces': ERROR,
'no-restricted-syntax': [ERROR, 'WithStatement'],
'no-shadow': ERROR,
'no-unused-expressions': ERROR,
'no-unused-vars': [ERROR, {args: 'none'}],
'no-useless-concat': OFF,
'quotes': [ERROR, 'single', {avoidEscape: true, allowTemplateLiterals: true }],
'space-before-blocks': ERROR,
'space-before-function-paren': OFF,
// React & JSX
// Our transforms set this automatically
'react/jsx-boolean-value': [ERROR, 'always'],
'react/jsx-no-undef': ERROR,
// We don't care to do this
'react/jsx-sort-prop-types': OFF,
'react/jsx-space-before-closing': ERROR,
'react/jsx-uses-react': ERROR,
'react/no-is-mounted': OFF,
// This isn't useful in our test code
'react/react-in-jsx-scope': ERROR,
'react/self-closing-comp': ERROR,
// We don't care to do this
'react/jsx-wrap-multilines': [ERROR, {declaration: false, assignment: false}],
// CUSTOM RULES
// the second argument of warning/invariant should be a literal string
'react-internal/warning-and-invariant-args': ERROR,
'react-internal/no-primitive-constructors': ERROR,
},
globals: {
spyOnDev: true,
},
};
react-16.2.0/.flowconfig000066400000000000000000000022241320735246300150410ustar00rootroot00000000000000[ignore]
/fixtures/.*
/build/.*
/scripts/bench/.*
# These shims are copied into external projects:
/scripts/rollup/shims/facebook-www/.*
/scripts/rollup/shims/react-native/.*
# Note: intentionally *don't* ignore /scripts/rollup/shims/rollup/
# because it is part of the build and isn't external.
/.*/node_modules/y18n/.*
/node_modules/chrome-devtools-frontend/.*
/node_modules/devtools-timeline-model/.*
/node_modules/create-react-class/.*
/.*/__mocks__/.*
/.*/__tests__/.*
[include]
[libs]
./node_modules/fbjs/flow/lib/dev.js
./scripts/flow
[options]
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
unsafe.enable_getters_and_setters=true
munge_underscores=false
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_type=$FlowExpectedError
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
[version]
^0.57.3
react-16.2.0/.gitattributes000066400000000000000000000000141320735246300155710ustar00rootroot00000000000000* text=auto
react-16.2.0/.github/000077500000000000000000000000001320735246300142435ustar00rootroot00000000000000react-16.2.0/.github/ISSUE_TEMPLATE.md000066400000000000000000000012331320735246300167470ustar00rootroot00000000000000
**Do you want to request a *feature* or report a *bug*?**
**What is the current behavior?**
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template for React 16: https://jsfiddle.net/Luktwrdm/, template for React 15: https://jsfiddle.net/hmbg7e9w/).**
**What is the expected behavior?**
**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?**
react-16.2.0/.github/PULL_REQUEST_TEMPLATE.md000066400000000000000000000015631320735246300200510ustar00rootroot00000000000000**Before submitting a pull request,** please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
7. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
8. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
9. If you haven't already, complete the CLA.
**Learn more about contributing:** https://reactjs.org/docs/how-to-contribute.html
react-16.2.0/.gitignore000066400000000000000000000004621320735246300146750ustar00rootroot00000000000000.DS_STORE
node_modules
*~
*.pyc
.grunt
_SpecRunner.html
__benchmarks__
build/
remote-repo/
coverage/
.module-cache
fixtures/dom/public/react-dom.js
fixtures/dom/public/react.js
test/the-files-to-test.generated.js
*.log*
chrome-user-data
*.sublime-project
*.sublime-workspace
.idea
*.iml
.vscode
*.swp
*.sworeact-16.2.0/.mailmap000066400000000000000000000167251320735246300143370ustar00rootroot00000000000000Adam Timberlake
Alex Mykyta
Alex Pien
Alex Pien
Alex Pien
Andreas Savvides
Andreas Savvides
Andreas Svensson
Andres Suarez
Andrew Kulakov
Andrew Sokolov
Anto Aravinth
Baraa Hamodi
Ben Halpern
Ben Newman
Benjamin Woodruff
Bill Fisher
Blaine Kasten
Brandon Tilley
Changsoon Bok
Cheng Lou
Christian Oliff
Christoph Pojer
Christoph Pojer
Connor McSheffrey
Conor Hastings
Dan Schafer
Daniel Gasienica
Daniel Gasienica
Daniel Hejl
Daniel Lo Nigro
Dave Galbraith
Dennis Johnson
Dmitry Blues
Dongsheng Liu
Erik Harper
Evan Coonrod
Fabio M. Costa
Felix Kling
François-Xavier Bois
Fyodor Ivanishchev
Gabe Levi
Geert Pasteels
George A Sisco III
Georgii Dolzhykov
Harry Hull
Hendrik Swanepoel
Hyeock Kwon
Ian Obermiller
Ilia Pavlenkov
Ilyá Belsky
Ingvar Stepanyan
Irae Carvalho
Ivan Vergiliev
JJ Weber
Jae Hun Ro
Jaime Mingo
James Brantly
Jan Hancic
Jan Kassens
Jason Bonta
Jason Quense
Jason Trill
Jeff Chan
Jeff Morrison
Jeff Morrison
Jeff Morrison
Jeffrey Lin
Jim Sproch
Jim Sproch
Jim Sproch
Jinwoo Oh
Jinxiu Lee
Jiyeon Seo
Jon Chester
Jon Madison
Jonathan Hsu
Jonathan Persson
Jordan Walke
Jordan Walke
Joseph Savona
Josh Duck
Juan Serrano
Jun Wu
Justin Robison
Keito Uchiyama
Kevin Coughlin
Krystian Karczewski
Kunal Mehta
Laurence Rowe
Marcin K.
Mark Anderson
Mark Funk
Martin Andert
Mathieu M-Gosselin
Matsunoki
Matt Brookes
Matt Dunn-Rankin
Matt Zabriskie
Matthew Johnston
Matthew Looi
Mattijs Kneppers
Max Heiber
Max Stoiber
Michal Srb xixixao
Michelle Todd
Mihai Parparita
Minwe LUO
Murray M. Moss
Murray M. Moss
Neri Marschik
Nick Gavalas
Nick Thompson
Patrick Stapleton
Paul O’Shannessy
Paul Shen
Pete Hunt
Pete Hunt
Pete Hunt
Pete Hunt
Petri Lievonen
Petri Lievonen
Pieter Vanderwerff
Pouja Nikray
Rainer Oviir
Ray
Richard Feldman
Richard Livesey
Rob Arnold
Robert Binna
Robin Frischmann
Sander Spies
Scott Feeney
Sebastian Markbåge
Sergey Rubanov
Shogun Sea
Soichiro Kawamura
Sophie Alpert
Sophie Alpert
Sophie Alpert
Sophie Alpert
Sota Ohara
Steven Luscher
Steven Luscher
Steven Luscher
Steven Luscher
Stoyan Stefanov
Tengfei Guo
Thomas Aylott
Timothy Yung
Tomoya Suzuki
Vasiliy Loginevskiy
Vasiliy Loginevskiy
Vjeux
Vjeux
Volkan Unsal
Wander Wang
Xavier Morel
YouBao Nong
Yutaka Nakajima
Zach Bruggeman
iawia002 <850127508@qq.com>
元彦
张敏
react-16.2.0/.nvmrc000066400000000000000000000000071320735246300140260ustar00rootroot00000000000000v8.4.0
react-16.2.0/.watchmanconfig000066400000000000000000000000001320735246300156620ustar00rootroot00000000000000react-16.2.0/AUTHORS000066400000000000000000001230621320735246300137570ustar00rootroot00000000000000839 <8398a7@gmail.com>
Aaron Ackerman
Aaron Cannon
Aaron Franks
Aaron Gelter
Abhay Nikam
Abhishek Soni