mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 04:40:23 +08:00
23 lines
1.7 KiB
Markdown
23 lines
1.7 KiB
Markdown
---
|
|
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.
|