diff --git a/content/blog/2013-10-16-react-v0.5.0.md b/content/blog/2013-10-16-react-v0.5.0.md index 88b7f4d7b..bb8fa7a8b 100644 --- a/content/blog/2013-10-16-react-v0.5.0.md +++ b/content/blog/2013-10-16-react-v0.5.0.md @@ -34,7 +34,7 @@ It's been awesome to see the things that people are building with React, and we * Added `React.version`. * Added `React.isValidClass` - Used to determine if a value is a valid component constructor. * Removed `React.autoBind` - This was deprecated in v0.4 and now properly removed. -* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`. +* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`. * Began laying down work for refined performance analysis. * Better support for server-side rendering - [react-page](https://github.com/facebook/react-page) has helped improve the stability for server-side rendering. * Made it possible to use React in environments enforcing a strict [Content Security Policy](https://developer.mozilla.org/en-US/docs/Security/CSP/Introducing_Content_Security_Policy). This also makes it possible to use React to build Chrome extensions. diff --git a/content/blog/2016-07-13-mixins-considered-harmful.md b/content/blog/2016-07-13-mixins-considered-harmful.md index 2ea907ea8..b1108400f 100644 --- a/content/blog/2016-07-13-mixins-considered-harmful.md +++ b/content/blog/2016-07-13-mixins-considered-harmful.md @@ -607,7 +607,7 @@ var Button = React.createClass({ Sometimes people use mixins to selectively add logging to lifecycle methods in some components. In the future, we intend to provide an [official DevTools API](https://github.com/facebook/react/issues/5306) that would let you implement something similar without touching the components. However it’s still very much a work in progress. If you heavily depend on logging mixins for debugging, you might want to keep using those mixins for a little longer. -If you can’t accomplish something with a component, a higher-order component, or a utility module, it could be mean that React should provide this out of the box. [File an issue](https://github.com/facebook/react/issues/new) to tell us about your use case for mixins, and we’ll help you consider alternatives or perhaps implement your feature request. +If you can’t accomplish something with a component, a higher-order component, or a utility module, it could mean that React should provide this out of the box. [File an issue](https://github.com/facebook/react/issues/new) to tell us about your use case for mixins, and we’ll help you consider alternatives or perhaps implement your feature request. Mixins are not deprecated in the traditional sense. You can keep using them with `React.createClass()`, as we won’t be changing it further. Eventually, as ES6 classes gain more adoption and their usability problems in React are solved, we might split `React.createClass()` into a separate package because most people wouldn’t need it. Even in that case, your old mixins would keep working. diff --git a/content/blog/2019-08-15-new-react-devtools.md b/content/blog/2019-08-15-new-react-devtools.md index b9f4b2eee..9981c349d 100644 --- a/content/blog/2019-08-15-new-react-devtools.md +++ b/content/blog/2019-08-15-new-react-devtools.md @@ -23,8 +23,8 @@ It also offers full support for React Hooks, including inspecting nested objects * `16.x`: Supported **`react-native`** -* `0`-`0.61`: Not supported -* `0.62`: Will be supported (when 0.62 is released) +* `0`-`0.61.x`: Not supported +* `0.62`: Supported ## How do I get the new DevTools? {#how-do-i-get-the-new-devtools} diff --git a/content/blog/2020-02-26-react-v16.13.0.md b/content/blog/2020-02-26-react-v16.13.0.md index 7ce520c13..4fb534042 100644 --- a/content/blog/2020-02-26-react-v16.13.0.md +++ b/content/blog/2020-02-26-react-v16.13.0.md @@ -204,6 +204,6 @@ Refer to the documentation for [detailed installation instructions](/docs/instal - Adjust `SuspenseList` CPU bound heuristic ([@sebmarkbage](https://github.com/sebmarkbage) in [#17455](https://github.com/facebook/react/pull/17455)) - Add missing event plugin priorities ([@trueadm](https://github.com/trueadm) in [#17914](https://github.com/facebook/react/pull/17914)) - Fix `isPending` only being true when transitioning from inside an input event ([@acdlite](https://github.com/acdlite) in [#17382](https://github.com/facebook/react/pull/17382)) -- Fix `React.memo` components dropping updates when interrupted by a higher priority update ([@acdlite](<(https://github.com/acdlite)>) in [#18091](https://github.com/facebook/react/pull/18091)) +- Fix `React.memo` components dropping updates when interrupted by a higher priority update ([@acdlite](https://github.com/acdlite) in [#18091](https://github.com/facebook/react/pull/18091)) - Don't warn when suspending at the wrong priority ([@gaearon](https://github.com/gaearon) in [#17971](https://github.com/facebook/react/pull/17971)) - Fix a bug with rebasing updates ([@acdlite](https://github.com/acdlite) and [@sebmarkbage](https://github.com/sebmarkbage) in [#17560](https://github.com/facebook/react/pull/17560), [#17510](https://github.com/facebook/react/pull/17510), [#17483](https://github.com/facebook/react/pull/17483), [#17480](https://github.com/facebook/react/pull/17480)) diff --git a/content/community/meetups.md b/content/community/meetups.md index 5bb7b7594..ca59569a9 100644 --- a/content/community/meetups.md +++ b/content/community/meetups.md @@ -80,6 +80,7 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet ## India {#india} * [Bangalore](https://www.meetup.com/ReactJS-Bangalore/) +* [Bangalore](https://www.meetup.com/React-Native-Bangalore-Meetup) * [Chandigarh](https://www.meetup.com/Chandigarh-React-Developers/) * [Chennai](https://www.meetup.com/React-Chennai/) * [Delhi NCR](https://www.meetup.com/React-Delhi-NCR/) diff --git a/content/community/team.md b/content/community/team.md index 6e35d028f..4ff9e367f 100644 --- a/content/community/team.md +++ b/content/community/team.md @@ -38,14 +38,6 @@ Brian studied art in college and did programming on the side to pay for his educ Dan got into programming after he accidentally discovered Visual Basic inside Microsoft PowerPoint. He has found his true calling in turning [Sebastian](#sebastian-markbage)'s tweets into long-form blog posts. Dan occasionally wins at Fortnite by hiding in a bush until the game ends. -### Dominic Gannaway {#dominic-gannaway} - -![Dominic](../images/team/trueadm.jpg) - -[@trueadm on GitHub](https://github.com/trueadm) · [@trueadm on Twitter](https://twitter.com/trueadm) - -Dominic is interested in travelling, drum and bass, stand-up comedy and spending time with the family. He most enjoys hacking on new unexplored ideas around UIs and accessibility and has a passion for tweaking and optimizing code to get the most performance out of things. - ### Luna Ruan {#luna-ruan} ![Luna](../images/team/lunaruan.jpg) @@ -62,6 +54,14 @@ Luna learned programming because she thought it meant creating video games. Inst Rachel wrote a [book about UI animation](https://abookapart.com/products/animation-at-work) once and worked with MDN and the W3C on the web animations API. Now she is busy with education materials and community engineering on the React team. Secretly, she is an award-winning cartoonist for teenage girls. Catch her making fancy tea with lukewarm water in the microkitchen. +### Rick Hanlon {#rick-hanlon} + +![Ricky](../images/team/rickhanlonii.jpg) + +[@rickhanlonii on GitHub](https://github.com/rickhanlonii) · [@rickhanlonii on Twitter](https://twitter.com/rickhanlonii) + +Ricky majored in theoretical math and somehow found himself on the React Native team for a couple years before joining the React team. When he's not programming you can find him snowboarding, biking, climbing, golfing, or closing GitHub issues that do not match the issue template. + ### Sebastian Markbåge {#sebastian-markbage} ![Sebastian](../images/team/sebmarkbage.jpg) @@ -70,13 +70,11 @@ Rachel wrote a [book about UI animation](https://abookapart.com/products/animati Sebastian majored in psychology. He's usually quiet. Even when he says something, it often doesn't make sense to the rest of us until a few months later. The correct way to pronounce his surname is "mark-boa-geh" but he settled for "mark-beige" out of pragmatism -- and that's how he approaches React. -### Yuzhi Zheng {#yuzhi-zheng} - -![Yuzhi](../images/team/yuzhi.jpg) +### Seth Webster {#seth-webster} -[@yuzhi on GitHub](https://github.com/yuzhi) · [@yuzhiz on Twitter](https://twitter.com/yuzhiz) +![Seth](../images/team/sethwebster.jpg) -Yuzhi studied Computer Science in school. She liked the instant gratification of seeing code come to life without having to physically be in a laboratory. Now she manages the React team. Before management, she used to work on the Relay data fetching framework. In her spare time, Yuzhi enjoys optimizing her life via gardening and home improvement projects. +Seth started programming as a kid growing up in Tucson, AZ. After school, he was bitten by the music bug and was a touring musician for about 10 years before returning to *work*, starting with Intuit. In his spare time, he loves [taking pictures](https://www.sethwebster.com) and flying for animal rescues in the northeastern United States. ## Acknowledgements {#acknowledgements} @@ -93,6 +91,7 @@ React was originally created by [Jordan Walke](https://github.com/jordwalke). To * [Christoph Nakazawa](https://github.com/cpojer) * [Christopher Chedeau](https://github.com/vjeux) * [Clement Hoang](https://github.com/clemmy) +* [Dominic Gannaway](https://github.com/trueadm) * [Flarnie Marchan](https://github.com/flarnie) * [Jason Quense](https://github.com/jquense) * [Jesse Beach](https://github.com/jessebeach) @@ -114,6 +113,7 @@ React was originally created by [Jordan Walke](https://github.com/jordwalke). To * [Sophie Alpert](https://github.com/sophiebits) * [Sunil Pai](https://github.com/threepointone) * [Tim Yung](https://github.com/yungsters) +* [Yuzhi Zheng](https://github.com/yuzhi) This list is not exhaustive. diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index 236b4f511..e23f33d6c 100644 --- a/content/docs/code-splitting.md +++ b/content/docs/code-splitting.md @@ -45,7 +45,7 @@ console.log(add(16, 26)); // 42 > > Наприкінці ваші бандли будуть значно відрізнятися від наведених прикладів. -Якщо ви використовуєте [Create React App](https://github.com/facebookincubator/create-react-app), [Next.js](https://github.com/zeit/next.js/), [Gatsby](https://www.gatsbyjs.org/) чи подібний інструмент, ви матимете налаштування Webpack за замовчуванням для бандлінгу вашого +Якщо ви використовуєте [Create React App](https://create-react-app.dev/), [Next.js](https://nextjs.org/), [Gatsby](https://www.gatsbyjs.org/) чи подібний інструмент, ви матимете налаштування Webpack за замовчуванням для бандлінгу вашого додатку. Якщо ви не використовуєте нічого з наведеного чи подібного, вам доведеться налаштовувати бандлінг самостійно. Для прикладів ознайомтеся зі diff --git a/content/docs/codebase-overview.md b/content/docs/codebase-overview.md index 7cf7d3eae..2d4198040 100644 --- a/content/docs/codebase-overview.md +++ b/content/docs/codebase-overview.md @@ -35,33 +35,11 @@ For example, a test for [`setInnerHTML.js`](https://github.com/facebook/react/bl ### Warnings and Invariants {#warnings-and-invariants} -The React codebase uses the `warning` module to display warnings: +The React codebase uses `console.error` to display warnings: ```js -var warning = require('warning'); - -warning( - 2 + 2 === 4, - 'Math is not working today.' -); -``` - -**The warning is shown when the `warning` condition is `false`.** - -One way to think about it is that the condition should reflect the normal situation rather than the exceptional one. - -It is a good idea to avoid spamming the console with duplicate warnings: - -```js -var warning = require('warning'); - -var didWarnAboutMath = false; -if (!didWarnAboutMath) { - warning( - 2 + 2 === 4, - 'Math is not working today.' - ); - didWarnAboutMath = true; +if (__DEV__) { + console.error('Something is wrong.'); } ``` @@ -114,39 +92,6 @@ ReactRef.detachRefs = function( When possible, new code should use Flow annotations. You can run `yarn flow` locally to check your code with Flow. -### Dynamic Injection {#dynamic-injection} - -React uses dynamic injection in some modules. While it is always explicit, it is still unfortunate because it hinders understanding of the code. The main reason it exists is because React originally only supported DOM as a target. React Native started as a React fork. We had to add dynamic injection to let React Native override some behaviors. - -You may see modules declaring their dynamic dependencies like this: - -```js -// Dynamically injected -var textComponentClass = null; - -// Relies on dynamically injected value -function createInstanceForText(text) { - return new textComponentClass(text); -} - -var ReactHostComponent = { - createInstanceForText, - - // Provides an opportunity for dynamic injection - injection: { - injectTextComponentClass: function(componentClass) { - textComponentClass = componentClass; - }, - }, -}; - -module.exports = ReactHostComponent; -``` - -The `injection` field is not handled specially in any way. But by convention, it means that this module wants to have some (presumably platform-specific) dependencies injected into it at runtime. - -There are multiple injection points in the codebase. In the future, we intend to get rid of the dynamic injection mechanism and wire up all the pieces statically during the build. - ### Multiple Packages {#multiple-packages} React is a [monorepo](https://danluu.com/monorepo/). Its repository contains multiple separate packages so that their changes can be coordinated together, and issues live in one place. @@ -211,9 +156,7 @@ Its source code is located in [`packages/react-reconciler`](https://github.com/f ### Event System {#event-system} -React implements a synthetic event system which is agnostic of the renderers and works both with React DOM and React Native. Its source code is located in [`packages/legacy-events`](https://github.com/facebook/react/tree/master/packages/legacy-events). - -There is a [video with a deep code dive into it](https://www.youtube.com/watch?v=dRo_egw7tBc) (66 mins). +React implements a layer over native events to smooth out cross-browser differences. Its source code is located in [`packages/react-dom/src/events`](https://github.com/facebook/react/tree/master/packages/react-dom/src/events). ### What Next? {#what-next} diff --git a/content/docs/hooks-overview.md b/content/docs/hooks-overview.md index 44d1a4fe5..ce6205117 100644 --- a/content/docs/hooks-overview.md +++ b/content/docs/hooks-overview.md @@ -229,7 +229,7 @@ function FriendListItem(props) { } ``` -Стани цих компонентів ніяким чином не залежать одне від одного. Хуки -- це спосіб повторно використовувати *логіку стану*, а не сам стан. Більш того, кожний *виклик* хука забезпечує абсолютно ізольований стан. Ви навіть можете використовувати один і той самий хук декілька разів в одному компоненті. +Стан кожного компонента ніяким чином не залежить одне від одного. Хуки -- це спосіб повторно використовувати *логіку стану*, а не сам стан. Більш того, кожний *виклик* хука забезпечує абсолютно ізольований стан. Ви навіть можете використовувати один і той самий хук декілька разів в одному компоненті. Користувацькі хуки -- це більше конвенція, аніж доповнення. Якщо ім'я функції починається з "`use`" і вона викликає інші хуки, ми розцінюємо це як користувацький хук. Якщо ви будете дотримуватися конвенції `useSomething` при іменуванні хуків, це дозволить нашому плагіну для лінтера знайти помилки в коді, який використовує хуки. diff --git a/content/docs/optimizing-performance.md b/content/docs/optimizing-performance.md index b2b621903..23d1bc9c7 100644 --- a/content/docs/optimizing-performance.md +++ b/content/docs/optimizing-performance.md @@ -371,7 +371,7 @@ function updateColorMap(colormap) { `updateColorMap` тепер повертає новий об'єкт, а не змінює старий. `Object.assign` — це ES6 і для його роботи потрібен поліфіл. -Існує пропозиція щодо внесення в JavaScript [розпакування властивостей об'єкта](https://github.com/sebmarkbage/ecmascript-rest-spread), щоб зробити простішим оновлення об'єктів без їхньої зміни: +[Оператор розкладу](https://developer.mozilla.org/uk/docs/Web/JavaScript/Reference/Operators/Spread_syntax) дозволяє оновлювати об'єкти, не мутуючи їх: ```js function updateColorMap(colormap) { @@ -379,6 +379,8 @@ function updateColorMap(colormap) { } ``` +Ця функція була додана до JavaScript у ES2018. + Якщо ви використовуєте Create React App, то `Object.assign` та розпакування об'єктів доступні за замовчуванням. Коли ви працюєте з глибоко вкладеними об'єктами, то постійне іх оновлення може заплутати вас. Якщо ви зіткнулися з такою проблемою, зверніть увагу на [Immer](https://github.com/mweststrate/immer) або [immutability-helper](https://github.com/kolodny/immutability-helper). Ці бібліотеки допомогають писати читабельний код, не втрачаючи переваг незмінності. diff --git a/content/docs/release-channels.md b/content/docs/release-channels.md index 579376d37..910649943 100644 --- a/content/docs/release-channels.md +++ b/content/docs/release-channels.md @@ -4,6 +4,8 @@ title: Release Channels permalink: docs/release-channels.html layout: docs category: installation +prev: cdn-links.html +next: hello-world.html --- React relies on a thriving open source community to file bug reports, open pull requests, and [submit RFCs](https://github.com/reactjs/rfcs). To encourage feedback we sometimes share special builds of React that include unreleased features. @@ -86,7 +88,7 @@ You may find it valuable to run integration tests against Experimental. This is #### How Can I Learn More About Experimental Features? {#how-can-i-learn-more-about-experimental-features} -Experimental features may or may not be documented. Usually, experiments aren't documented until they are close to shipping in Next or Stable. +Experimental features may or may not be documented. Usually, experiments aren't documented until they are close to shipping in Next or Latest. If a feature is not documented, they may be accompanied by an [RFC](https://github.com/reactjs/rfcs). diff --git a/content/images/team/rickhanlonii.jpg b/content/images/team/rickhanlonii.jpg new file mode 100644 index 000000000..eb04614c5 Binary files /dev/null and b/content/images/team/rickhanlonii.jpg differ diff --git a/content/images/team/sethwebster.jpg b/content/images/team/sethwebster.jpg new file mode 100644 index 000000000..c665a0b00 Binary files /dev/null and b/content/images/team/sethwebster.jpg differ diff --git a/flow-typed/gatsby.js b/flow-typed/gatsby.js index 8fec2756a..b7b8bcaa9 100644 --- a/flow-typed/gatsby.js +++ b/flow-typed/gatsby.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + declare module 'gatsby' { declare module.exports: any; } diff --git a/flow-typed/glamor.js b/flow-typed/glamor.js index 1c87bfc20..973abe923 100644 --- a/flow-typed/glamor.js +++ b/flow-typed/glamor.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + declare module 'glamor' { declare module.exports: { css: { diff --git a/flow-typed/hex2rgba.js b/flow-typed/hex2rgba.js index 3d67cf8d9..1d7395e0c 100644 --- a/flow-typed/hex2rgba.js +++ b/flow-typed/hex2rgba.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + declare module 'hex2rgba' { declare module.exports: (hex: string, alpha?: number) => string; } diff --git a/flow-typed/react-helmet.js b/flow-typed/react-helmet.js index a614e9ad4..c2cbcb24f 100644 --- a/flow-typed/react-helmet.js +++ b/flow-typed/react-helmet.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + declare module 'react-helmet' { declare module.exports: any; } diff --git a/flow-typed/slugify.js b/flow-typed/slugify.js index 82a44ce41..c1fb6e19b 100644 --- a/flow-typed/slugify.js +++ b/flow-typed/slugify.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + declare module 'slugify' { declare module.exports: any; } diff --git a/gatsby-browser.js b/gatsby-browser.js index 83d72722d..a6d4cffe4 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby-config.js b/gatsby-config.js index 746bb781a..df3abaedf 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby-node.js b/gatsby-node.js index 83d7ae0fc..b8943349e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby/createPages.js b/gatsby/createPages.js index 883028963..38092c7f0 100644 --- a/gatsby/createPages.js +++ b/gatsby/createPages.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby/onCreateNode.js b/gatsby/onCreateNode.js index 0e6e9934d..66625420a 100644 --- a/gatsby/onCreateNode.js +++ b/gatsby/onCreateNode.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby/onCreatePage.js b/gatsby/onCreatePage.js index 7776438fc..81914eddc 100644 --- a/gatsby/onCreatePage.js +++ b/gatsby/onCreatePage.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/gatsby/onCreateWebpackConfig.js b/gatsby/onCreateWebpackConfig.js index 61f858bf0..f1d282d11 100644 --- a/gatsby/onCreateWebpackConfig.js +++ b/gatsby/onCreateWebpackConfig.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/plugins/gatsby-remark-header-custom-ids/gatsby-client.js b/plugins/gatsby-remark-header-custom-ids/gatsby-client.js index 6b24d0b13..c0e8cf283 100644 --- a/plugins/gatsby-remark-header-custom-ids/gatsby-client.js +++ b/plugins/gatsby-remark-header-custom-ids/gatsby-client.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + let offsetY = 0; const getTargetOffset = hash => { diff --git a/plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js b/plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js index c616fc289..60bce60a4 100644 --- a/plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js +++ b/plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const React = require(`react`); const pluginDefaults = { diff --git a/plugins/gatsby-remark-header-custom-ids/index.js b/plugins/gatsby-remark-header-custom-ids/index.js index df6457073..aa24fdcc8 100644 --- a/plugins/gatsby-remark-header-custom-ids/index.js +++ b/plugins/gatsby-remark-header-custom-ids/index.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + /*! * Based on 'gatsby-remark-autolink-headers' * Original Author: Kyle Mathews diff --git a/plugins/gatsby-remark-use-jsx/index.js b/plugins/gatsby-remark-use-jsx/index.js index c76a2276e..0bf0380ac 100644 --- a/plugins/gatsby-remark-use-jsx/index.js +++ b/plugins/gatsby-remark-use-jsx/index.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const visit = require('unist-util-visit'); // Always treat JS blocks as JSX. diff --git a/plugins/gatsby-source-react-error-codes/gatsby-node.js b/plugins/gatsby-source-react-error-codes/gatsby-node.js index a02cdf9ce..b3c04722e 100644 --- a/plugins/gatsby-source-react-error-codes/gatsby-node.js +++ b/plugins/gatsby-source-react-error-codes/gatsby-node.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const request = require('request-promise'); const errorCodesUrl = diff --git a/plugins/gatsby-transformer-authors-yaml/gatsby-node.js b/plugins/gatsby-transformer-authors-yaml/gatsby-node.js index bb5ca8bc4..04bfc98e2 100644 --- a/plugins/gatsby-transformer-authors-yaml/gatsby-node.js +++ b/plugins/gatsby-transformer-authors-yaml/gatsby-node.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const readFileSync = require('fs').readFileSync; const resolve = require('path').resolve; const safeLoad = require('js-yaml').safeLoad; diff --git a/plugins/gatsby-transformer-home-example-code/gatsby-node.js b/plugins/gatsby-transformer-home-example-code/gatsby-node.js index 4e273ce2d..815ea29de 100644 --- a/plugins/gatsby-transformer-home-example-code/gatsby-node.js +++ b/plugins/gatsby-transformer-home-example-code/gatsby-node.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const crypto = require('crypto'); const path = require('path'); diff --git a/plugins/gatsby-transformer-versions-yaml/create-redirects.js b/plugins/gatsby-transformer-versions-yaml/create-redirects.js index af9c49a55..29a25c327 100644 --- a/plugins/gatsby-transformer-versions-yaml/create-redirects.js +++ b/plugins/gatsby-transformer-versions-yaml/create-redirects.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const {appendFile, exists, readFile, writeFile} = require('fs-extra'); const HEADER_COMMENT = `## Created with gatsby-transformer-versions-yaml`; diff --git a/plugins/gatsby-transformer-versions-yaml/gatsby-node.js b/plugins/gatsby-transformer-versions-yaml/gatsby-node.js index a5396891f..e4baa8887 100644 --- a/plugins/gatsby-transformer-versions-yaml/gatsby-node.js +++ b/plugins/gatsby-transformer-versions-yaml/gatsby-node.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const readFileSync = require('fs').readFileSync; const resolve = require('path').resolve; const safeLoad = require('js-yaml').safeLoad; diff --git a/scripts/generateHeadingIDs.js b/scripts/generateHeadingIDs.js index a8130edf0..2a051764f 100644 --- a/scripts/generateHeadingIDs.js +++ b/scripts/generateHeadingIDs.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + const fs = require('fs'); const GithubSlugger = require('github-slugger'); diff --git a/src/components/ButtonLink/ButtonLink.js b/src/components/ButtonLink/ButtonLink.js index 9367fe2b3..0732aa05f 100644 --- a/src/components/ButtonLink/ButtonLink.js +++ b/src/components/ButtonLink/ButtonLink.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/ButtonLink/index.js b/src/components/ButtonLink/index.js index f4ed7b7a0..4125bb2ec 100644 --- a/src/components/ButtonLink/index.js +++ b/src/components/ButtonLink/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/CodeEditor/CodeEditor.js b/src/components/CodeEditor/CodeEditor.js index 3f8e1fadf..156ed2577 100644 --- a/src/components/CodeEditor/CodeEditor.js +++ b/src/components/CodeEditor/CodeEditor.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/CodeEditor/index.js b/src/components/CodeEditor/index.js index 4cd1787dc..cc755885d 100644 --- a/src/components/CodeEditor/index.js +++ b/src/components/CodeEditor/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/CodeExample/CodeExample.js b/src/components/CodeExample/CodeExample.js index d43fb35c2..52672da02 100644 --- a/src/components/CodeExample/CodeExample.js +++ b/src/components/CodeExample/CodeExample.js @@ -1,10 +1,23 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * @flow + */ + import React, {Component} from 'react'; -import PropTypes from 'prop-types'; import {colors, media} from 'theme'; import CodeEditor from '../CodeEditor/CodeEditor'; -class CodeExample extends Component { +type Props = {| + children: React$Node, + code: boolean, + containerNodeID: string, + id: string, + loaded: boolean, +|}; + +class CodeExample extends Component { render() { const {children, code, id, containerNodeID, loaded} = this.props; return ( @@ -68,10 +81,4 @@ class CodeExample extends Component { } } -CodeExample.propTypes = { - children: PropTypes.node, - code: PropTypes.string.isRequired, - loaded: PropTypes.bool.isRequired, -}; - export default CodeExample; diff --git a/src/components/CodeExample/index.js b/src/components/CodeExample/index.js index 6bff868c1..201835a15 100644 --- a/src/components/CodeExample/index.js +++ b/src/components/CodeExample/index.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * @flow + */ + import CodeExample from './CodeExample'; export default CodeExample; diff --git a/src/components/Container/Container.js b/src/components/Container/Container.js index 36c932eac..c03560e55 100644 --- a/src/components/Container/Container.js +++ b/src/components/Container/Container.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/Container/index.js b/src/components/Container/index.js index 6270e9c66..da0bada21 100644 --- a/src/components/Container/index.js +++ b/src/components/Container/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/ErrorDecoder/ErrorDecoder.js b/src/components/ErrorDecoder/ErrorDecoder.js index 32e6146ac..4da802ee8 100644 --- a/src/components/ErrorDecoder/ErrorDecoder.js +++ b/src/components/ErrorDecoder/ErrorDecoder.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/ErrorDecoder/index.js b/src/components/ErrorDecoder/index.js index a3762d429..1a9113b35 100644 --- a/src/components/ErrorDecoder/index.js +++ b/src/components/ErrorDecoder/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/Flex/Flex.js b/src/components/Flex/Flex.js index 4d7e74aef..da93fecaa 100644 --- a/src/components/Flex/Flex.js +++ b/src/components/Flex/Flex.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/Flex/index.js b/src/components/Flex/index.js index 478182639..8de05559a 100644 --- a/src/components/Flex/index.js +++ b/src/components/Flex/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index 39422d958..66a057182 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/Header/index.js b/src/components/Header/index.js index 239c11525..057fc4c80 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index dc727c082..82e2e1287 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/Layout/index.js b/src/components/Layout/index.js index 67d6127d3..c5e951e65 100644 --- a/src/components/Layout/index.js +++ b/src/components/Layout/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/LayoutFooter/ExternalFooterLink.js b/src/components/LayoutFooter/ExternalFooterLink.js index db061f4a3..600f0d1a4 100644 --- a/src/components/LayoutFooter/ExternalFooterLink.js +++ b/src/components/LayoutFooter/ExternalFooterLink.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/components/LayoutFooter/Footer.js b/src/components/LayoutFooter/Footer.js index b77741b37..e7dffa8b4 100644 --- a/src/components/LayoutFooter/Footer.js +++ b/src/components/LayoutFooter/Footer.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow @@ -100,6 +100,12 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => ( {navFooter.more.title} + + Privacy + + + Terms +
, +|}; + const SectionLinks = ({links}: Props) => links.map(item => { if (item.external) { diff --git a/src/components/LayoutFooter/index.js b/src/components/LayoutFooter/index.js index 1ffbe907b..e301318f5 100644 --- a/src/components/LayoutFooter/index.js +++ b/src/components/LayoutFooter/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/components/LayoutHeader/DocSearch.js b/src/components/LayoutHeader/DocSearch.js index 1a8dc04a1..9ba38c534 100644 --- a/src/components/LayoutHeader/DocSearch.js +++ b/src/components/LayoutHeader/DocSearch.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow @@ -44,7 +44,6 @@ class DocSearch extends Component<{}, State> { alignItems: 'center', paddingLeft: '0.25rem', paddingRight: '0.25rem', - [media.lessThan('expandedSearch')]: { justifyContent: 'flex-end', marginRight: 10, @@ -56,6 +55,7 @@ class DocSearch extends Component<{}, State> { // }, [media.greaterThan('expandedSearch')]: { minWidth: 100, + width: 'calc(100% / 5)', }, }}> { render() { return ( diff --git a/src/pages/404.js b/src/pages/404.js index b5977ce62..08684f156 100644 --- a/src/pages/404.js +++ b/src/pages/404.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/pages/acknowledgements.html.js b/src/pages/acknowledgements.html.js index 7a67b4c24..427561dac 100644 --- a/src/pages/acknowledgements.html.js +++ b/src/pages/acknowledgements.html.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ @@ -72,7 +72,7 @@ const Acknowlegements = ({data, location}) => (
  • Dmitri Voronianski{' '} for letting us use the{' '} - + Oceanic Next {' '} color scheme on this website. diff --git a/src/pages/blog/all.html.js b/src/pages/blog/all.html.js index 35734b5b1..f74b093b4 100644 --- a/src/pages/blog/all.html.js +++ b/src/pages/blog/all.html.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/pages/docs/error-decoder.html.js b/src/pages/docs/error-decoder.html.js index e51abe51d..bc4c2236f 100644 --- a/src/pages/docs/error-decoder.html.js +++ b/src/pages/docs/error-decoder.html.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/pages/index.js b/src/pages/index.js index a562e121b..95a4ed80e 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/pages/jsx-compiler.html.js b/src/pages/jsx-compiler.html.js index acdcfd9ef..1551f7c2a 100644 --- a/src/pages/jsx-compiler.html.js +++ b/src/pages/jsx-compiler.html.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/pages/languages.js b/src/pages/languages.js index f0309a3bb..5157baa63 100644 --- a/src/pages/languages.js +++ b/src/pages/languages.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/pages/versions.js b/src/pages/versions.js index c4e3532b3..3c85c02fa 100644 --- a/src/pages/versions.js +++ b/src/pages/versions.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/prism-styles.js b/src/prism-styles.js index 9772895d3..0fee91678 100644 --- a/src/prism-styles.js +++ b/src/prism-styles.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/site-constants.js b/src/site-constants.js index 481eb409b..c9ebaf466 100644 --- a/src/site-constants.js +++ b/src/site-constants.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @providesModule site-constants * @flow diff --git a/src/templates/blog.js b/src/templates/blog.js index 57967afcc..edac15cdb 100644 --- a/src/templates/blog.js +++ b/src/templates/blog.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/codepen-example.js b/src/templates/codepen-example.js index 9b752aee6..92ba1d97b 100644 --- a/src/templates/codepen-example.js +++ b/src/templates/codepen-example.js @@ -1,8 +1,22 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * @flow + */ + import React, {Component} from 'react'; import Container from 'components/Container'; import Layout from 'components/Layout'; import {colors} from 'theme'; +type Props = { + location: Location, + pageContext: {| + action: string, + payload: string, + |}, +}; + // Copied over styles from ButtonLink for the submit btn const primaryStyle = { backgroundColor: colors.brand, @@ -22,9 +36,11 @@ const primaryStyle = { fontSize: 16, }; -class CodepenExample extends Component { +class CodepenExample extends Component { + _form: HTMLFormElement | null = null; + componentDidMount() { - this.codepenForm.submit(); + ((this._form: any): HTMLFormElement).submit(); } render() { @@ -38,7 +54,7 @@ class CodepenExample extends Component {
    { - this.codepenForm = form; + this._form = form; }} action={action} method="POST"> diff --git a/src/templates/community.js b/src/templates/community.js index 05f7ca910..bc39db331 100644 --- a/src/templates/community.js +++ b/src/templates/community.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/ChevronSvg/index.js b/src/templates/components/ChevronSvg/index.js index f6c8fe536..5d72445ba 100644 --- a/src/templates/components/ChevronSvg/index.js +++ b/src/templates/components/ChevronSvg/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/templates/components/ExternalLinkSvg/index.js b/src/templates/components/ExternalLinkSvg/index.js index 08a8f592d..23dec0b78 100644 --- a/src/templates/components/ExternalLinkSvg/index.js +++ b/src/templates/components/ExternalLinkSvg/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/MetaTitle/index.js b/src/templates/components/MetaTitle/index.js index 4a8adddd9..cb7f0807f 100644 --- a/src/templates/components/MetaTitle/index.js +++ b/src/templates/components/MetaTitle/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/NavigationFooter/NavigationFooter.js b/src/templates/components/NavigationFooter/NavigationFooter.js index 9ee0e9519..6672ec3cb 100644 --- a/src/templates/components/NavigationFooter/NavigationFooter.js +++ b/src/templates/components/NavigationFooter/NavigationFooter.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/NavigationFooter/index.js b/src/templates/components/NavigationFooter/index.js index bf8487899..61b9a4319 100644 --- a/src/templates/components/NavigationFooter/index.js +++ b/src/templates/components/NavigationFooter/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/Sidebar/ScrollSyncSection.js b/src/templates/components/Sidebar/ScrollSyncSection.js index 62e2b88d2..9fef1b5f4 100644 --- a/src/templates/components/Sidebar/ScrollSyncSection.js +++ b/src/templates/components/Sidebar/ScrollSyncSection.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the CC-BY-4.0 license found * in the LICENSE file in the root directory of this source tree. diff --git a/src/templates/components/Sidebar/Section.js b/src/templates/components/Sidebar/Section.js index d48ed8e40..5c2983175 100644 --- a/src/templates/components/Sidebar/Section.js +++ b/src/templates/components/Sidebar/Section.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ @@ -40,7 +40,8 @@ class Section extends React.Component { cssProps={{ [media.greaterThan('small')]: { color: isActive ? colors.text : colors.subtle, - + paddingRight: 7, + paddingLeft: 7, ':hover': { color: colors.text, }, diff --git a/src/templates/components/Sidebar/Sidebar.js b/src/templates/components/Sidebar/Sidebar.js index b4199931a..13ab56061 100644 --- a/src/templates/components/Sidebar/Sidebar.js +++ b/src/templates/components/Sidebar/Sidebar.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/components/Sidebar/index.js b/src/templates/components/Sidebar/index.js index e1d4ef6fe..18570020a 100644 --- a/src/templates/components/Sidebar/index.js +++ b/src/templates/components/Sidebar/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/docs.js b/src/templates/docs.js index b874201d7..6095d58bc 100644 --- a/src/templates/docs.js +++ b/src/templates/docs.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/templates/tutorial.js b/src/templates/tutorial.js index 79a4b2c8c..91220548c 100644 --- a/src/templates/tutorial.js +++ b/src/templates/tutorial.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core */ diff --git a/src/theme.js b/src/theme.js index 50500e00f..e7a0c23ac 100644 --- a/src/theme.js +++ b/src/theme.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @providesModule theme * @flow diff --git a/src/types.js b/src/types.js index 782a5b6f6..2573f79eb 100644 --- a/src/types.js +++ b/src/types.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/createCanonicalUrl.js b/src/utils/createCanonicalUrl.js index 0fafad59a..2ee9c80a3 100644 --- a/src/utils/createCanonicalUrl.js +++ b/src/utils/createCanonicalUrl.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/createLink.js b/src/utils/createLink.js index eee6db08e..efefe0b2a 100644 --- a/src/utils/createLink.js +++ b/src/utils/createLink.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/findSectionForPath.js b/src/utils/findSectionForPath.js index eedffc0ad..15953de23 100644 --- a/src/utils/findSectionForPath.js +++ b/src/utils/findSectionForPath.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/isItemActive.js b/src/utils/isItemActive.js index 754db4b87..d4e29a2bd 100644 --- a/src/utils/isItemActive.js +++ b/src/utils/isItemActive.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/loadScript.js b/src/utils/loadScript.js index 83fa80a64..ee2a1d212 100644 --- a/src/utils/loadScript.js +++ b/src/utils/loadScript.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/src/utils/patchDOMForGoogleTranslate.js b/src/utils/patchDOMForGoogleTranslate.js index 35b9153a5..ad8445278 100644 --- a/src/utils/patchDOMForGoogleTranslate.js +++ b/src/utils/patchDOMForGoogleTranslate.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/sectionList.js b/src/utils/sectionList.js index a52f28b9c..3f8ab386e 100644 --- a/src/utils/sectionList.js +++ b/src/utils/sectionList.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/slugify.js b/src/utils/slugify.js index cf2ef3849..1bcd3bae6 100644 --- a/src/utils/slugify.js +++ b/src/utils/slugify.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/src/utils/toCommaSeparatedList.js b/src/utils/toCommaSeparatedList.js index e70da06f9..5dd03662a 100644 --- a/src/utils/toCommaSeparatedList.js +++ b/src/utils/toCommaSeparatedList.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its affiliates. * * @emails react-core * @flow diff --git a/static/js/jsfiddle-integration-babel.js b/static/js/jsfiddle-integration-babel.js index 5dc66b1d3..006c79c8a 100644 --- a/static/js/jsfiddle-integration-babel.js +++ b/static/js/jsfiddle-integration-babel.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + // Do not delete or move this file. // Many fiddles reference it so we have to keep it here. (function() { diff --git a/static/js/jsfiddle-integration.js b/static/js/jsfiddle-integration.js index d4a066698..fcf09e43f 100644 --- a/static/js/jsfiddle-integration.js +++ b/static/js/jsfiddle-integration.js @@ -1,3 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + */ + // Do not delete or move this file. // Many fiddles reference it so we have to keep it here. (function() {