mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Remove "use strict" from source files
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Link from 'gatsby-link';
|
||||
import React from 'react';
|
||||
import {colors, media} from 'theme';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import ButtonLink from './ButtonLink';
|
||||
|
||||
export default ButtonLink;
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import Remarkable from 'remarkable';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import CodeEditor from './CodeEditor';
|
||||
|
||||
export default CodeEditor;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {media} from 'theme';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from './Container';
|
||||
|
||||
export default Container;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import type {Node} from 'react';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import ErrorDecoder from './ErrorDecoder';
|
||||
|
||||
export default ErrorDecoder;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import {createElement} from 'glamor/react';
|
||||
|
||||
import type {Node} from 'react';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Flex from './Flex';
|
||||
|
||||
export default Flex;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {colors, fonts} from 'theme';
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Header from './Header';
|
||||
|
||||
export default Header;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {colors} from 'theme';
|
||||
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import ExternalFooterLink from './ExternalFooterLink';
|
||||
import FooterLink from './FooterLink';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Link from 'gatsby-link';
|
||||
import React from 'react';
|
||||
import {colors} from 'theme';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {media} from 'theme';
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Footer from './Footer';
|
||||
|
||||
export default Footer;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import HeaderLink from './HeaderLink';
|
||||
import Link from 'gatsby-link';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Link from 'gatsby-link';
|
||||
import React from 'react';
|
||||
import {colors, media} from 'theme';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const SearchSvg = () => (
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Header from './Header';
|
||||
|
||||
export default Header;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Flex from 'components/Flex';
|
||||
import React from 'react';
|
||||
import {colors, fonts, media} from 'theme';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import MarkdownHeader from './MarkdownHeader';
|
||||
|
||||
export default MarkdownHeader;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import Flex from 'components/Flex';
|
||||
import MarkdownHeader from 'components/MarkdownHeader';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import MarkdownPage from './MarkdownPage';
|
||||
|
||||
export default MarkdownPage;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import React, {Component} from 'react';
|
||||
import Sidebar from 'templates/components/Sidebar';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import StickyResponsiveSidebar from './StickyResponsiveSidebar';
|
||||
|
||||
export default StickyResponsiveSidebar;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Helmet from 'react-helmet';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import TitleAndMetaTags from './TitleAndMetaTags';
|
||||
|
||||
export default TitleAndMetaTags;
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
|
||||
let stylesStr;
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
// Polyfills for IE
|
||||
import 'array-from';
|
||||
import 'string.prototype.includes';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import Header from 'components/Header';
|
||||
import TitleAndMetaTags from 'components/TitleAndMetaTags';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import Header from 'components/Header';
|
||||
import TitleAndMetaTags from 'components/TitleAndMetaTags';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Link from 'gatsby-link';
|
||||
import Container from 'components/Container';
|
||||
import Header from 'components/Header';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import ErrorDecoder from 'components/ErrorDecoder';
|
||||
import Flex from 'components/Flex';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import ButtonLink from 'components/ButtonLink';
|
||||
import Container from 'components/Container';
|
||||
import Flex from 'components/Flex';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import Header from 'components/Header';
|
||||
import React from 'react';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import {css} from 'glamor';
|
||||
import {colors} from 'theme';
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
// NOTE: We can't just use `location.toString()` because when we are rendering
|
||||
// the SSR part in node.js we won't have a proper location.
|
||||
const urlRoot = 'https://reactjs.org';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import MarkdownPage from 'components/MarkdownPage';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import Container from 'components/Container';
|
||||
import {colors} from 'theme';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import MarkdownPage from 'components/MarkdownPage';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const ExternalLinkSvg = ({cssProps = {}}: {cssProps: Object}) => (
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {colors} from 'theme';
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Container from 'components/Container';
|
||||
import Flex from 'components/Flex';
|
||||
import Link from 'gatsby-link';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import NavigationFooter from './NavigationFooter';
|
||||
|
||||
export default NavigationFooter;
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import Section from './Section';
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {colors, media} from 'theme';
|
||||
import isItemActive from 'utils/isItemActive';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import Flex from 'components/Flex';
|
||||
import Section from './Section';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Sidebar from './Sidebar';
|
||||
|
||||
export default Sidebar;
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import MarkdownPage from 'components/MarkdownPage';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import MarkdownPage from 'components/MarkdownPage';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Theme contains variables shared by styles of multiple components.
|
||||
*/
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import Link from 'gatsby-link';
|
||||
import React from 'react';
|
||||
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import {urlRoot} from 'site-constants';
|
||||
|
||||
export default (slug: string): string | null =>
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import slugify from './slugify';
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import slugify from 'utils/slugify';
|
||||
|
||||
const toAnchor = (href: string = ''): string => {
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
export default url =>
|
||||
new Promise((resolve, reject) =>
|
||||
document.head.appendChild(
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
* @emails react-core
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import CodeEditor from '../components/CodeEditor';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
// $FlowExpectedError
|
||||
import navCommunity from '../../content/community/nav.yml';
|
||||
// $FlowExpectedError
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import slugify from 'slugify';
|
||||
|
||||
export default (string: string, directory?: string): string => {
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import type {Node} from 'react';
|
||||
|
||||
Reference in New Issue
Block a user