Move supported language features into its own file

This commit is contained in:
Kristofer Selbekk
2018-10-07 19:21:57 +02:00
parent 46da78ad4f
commit 7452933216
4 changed files with 41 additions and 23 deletions

View 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.

View File

@@ -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.

View File

@@ -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"

View File

@@ -4,7 +4,8 @@
"getting-started",
"folder-structure",
"available-scripts",
"supported-browsers"
"supported-browsers",
"supported-language-features"
],
"Development": [
"syntax-highlighting-in-the-editor",