mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 08:58:15 +08:00
Move supported language features into its own file
This commit is contained in:
22
docusaurus/docs/supported-language-features.md
Normal file
22
docusaurus/docs/supported-language-features.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
id: supported-language-features
|
||||
title: Supported Language Features
|
||||
---
|
||||
|
||||
This project supports a superset of the latest JavaScript standard.<br>
|
||||
In addition to [ES6](https://github.com/lukehoban/es6features) syntax features, it also supports:
|
||||
|
||||
- [Exponentiation Operator](https://github.com/rwaldron/exponentiation-operator) (ES2016).
|
||||
- [Async/await](https://github.com/tc39/ecmascript-asyncawait) (ES2017).
|
||||
- [Object Rest/Spread Properties](https://github.com/tc39/proposal-object-rest-spread) (ES2018).
|
||||
- [Dynamic import()](https://github.com/tc39/proposal-dynamic-import) (stage 3 proposal)
|
||||
- [Class Fields and Static Properties](https://github.com/tc39/proposal-class-public-fields) (part of stage 3 proposal).
|
||||
- [JSX](https://facebook.github.io/react/docs/introducing-jsx.html) and [Flow](https://flow.org/) syntax.
|
||||
|
||||
Learn more about [different proposal stages](https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets-).
|
||||
|
||||
While we recommend using experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide [codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) if any of these proposals change in the future.
|
||||
|
||||
Note that **this project includes no [polyfills](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md)** by default.
|
||||
|
||||
If you use any other ES6+ features that need **runtime support** (such as `Array.from()` or `Symbol`), make sure you are [including the appropriate polyfills manually](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md), or that the browsers you are targeting already support them.
|
||||
@@ -11,7 +11,6 @@ You can find the most recent version of this guide [here](https://github.com/fac
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Supported Language Features](#supported-language-features)
|
||||
- [Changing the Page `<title>`](#changing-the-page-title)
|
||||
- [Installing a Dependency](#installing-a-dependency)
|
||||
- [Importing a Component](#importing-a-component)
|
||||
@@ -52,27 +51,6 @@ You can find the most recent version of this guide [here](https://github.com/fac
|
||||
- [Advanced Configuration](#advanced-configuration)
|
||||
- [Alternatives to Ejecting](#alternatives-to-ejecting)
|
||||
|
||||
### Supported Language Features
|
||||
|
||||
This project supports a superset of the latest JavaScript standard.<br>
|
||||
In addition to [ES6](https://github.com/lukehoban/es6features) syntax features, it also supports:
|
||||
|
||||
- [Exponentiation Operator](https://github.com/rwaldron/exponentiation-operator) (ES2016).
|
||||
- [Async/await](https://github.com/tc39/ecmascript-asyncawait) (ES2017).
|
||||
- [Object Rest/Spread Properties](https://github.com/tc39/proposal-object-rest-spread) (ES2018).
|
||||
- [Dynamic import()](https://github.com/tc39/proposal-dynamic-import) (stage 3 proposal)
|
||||
- [Class Fields and Static Properties](https://github.com/tc39/proposal-class-public-fields) (part of stage 3 proposal).
|
||||
- [JSX](https://facebook.github.io/react/docs/introducing-jsx.html) and [Flow](https://flow.org/) syntax.
|
||||
|
||||
Learn more about [different proposal stages](https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets-).
|
||||
|
||||
While we recommend using experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide [codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) if any of these proposals change in the future.
|
||||
|
||||
Note that **this project includes no [polyfills](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md)** by default.
|
||||
|
||||
If you use any other ES6+ features that need **runtime support** (such as `Array.from()` or `Symbol`), make sure you are [including the appropriate polyfills manually](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md), or that the browsers you are targeting already support them.
|
||||
|
||||
|
||||
## Changing the Page `<title>`
|
||||
|
||||
You can find the source HTML file in the `public` folder of the generated project. You may edit the `<title>` tag in it to change the title from “React App” to anything else.
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
"previous": "Previous",
|
||||
"tagline": "Create React apps with no build configuration.",
|
||||
"docs": {
|
||||
"analyzing-the-bundle-size": {
|
||||
"title": "Analyzing the Bundle Size",
|
||||
"sidebar_label": "Analyzing bundle size"
|
||||
},
|
||||
"available-scripts": {
|
||||
"title": "Available Scripts",
|
||||
"sidebar_label": "Available scripts"
|
||||
@@ -20,6 +24,9 @@
|
||||
"title": "Deployment",
|
||||
"sidebar_label": "Deployment"
|
||||
},
|
||||
"developing-components-in-isolation": {
|
||||
"title": "Developing Components in Isolation"
|
||||
},
|
||||
"folder-structure": {
|
||||
"title": "Folder structure"
|
||||
},
|
||||
@@ -35,6 +42,10 @@
|
||||
"title": "Displaying Lint Output in the Editor",
|
||||
"sidebar_label": "In-editor linting"
|
||||
},
|
||||
"proxying-api-requests-in-development": {
|
||||
"title": "Proxying API Requests in Development",
|
||||
"sidebar_label": "Proxying in development"
|
||||
},
|
||||
"publishing-components-to-npm": {
|
||||
"title": "Publishing components to npm",
|
||||
"sidebar_label": "Publishing to npm"
|
||||
@@ -54,6 +65,9 @@
|
||||
"title": "Something missing?",
|
||||
"sidebar_label": "Something missing?"
|
||||
},
|
||||
"supported-browsers": {
|
||||
"title": "Supported Browsers"
|
||||
},
|
||||
"syntax-highlighting-in-the-editor": {
|
||||
"title": "Syntax highlighting in the editor",
|
||||
"sidebar_label": "Syntax highlighting"
|
||||
@@ -62,6 +76,9 @@
|
||||
"title": "Troubleshooting",
|
||||
"sidebar_label": "Troubleshooting"
|
||||
},
|
||||
"updating-to-new-releases": {
|
||||
"title": "Updating to New Releases"
|
||||
},
|
||||
"user-guide": {
|
||||
"title": "User guide",
|
||||
"sidebar_label": "User guide"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"getting-started",
|
||||
"folder-structure",
|
||||
"available-scripts",
|
||||
"supported-browsers"
|
||||
"supported-browsers",
|
||||
"supported-language-features"
|
||||
],
|
||||
"Development": [
|
||||
"syntax-highlighting-in-the-editor",
|
||||
|
||||
Reference in New Issue
Block a user