Files
create-react-app/docusaurus/docs/can-i-use-decorators.md
Ian Sutherland 1d03579f51 Add Alex to lint documentation (#7852)
* Add Alex to lint documentation

* Attempt to trigger GitHub Action

* Configure Alex and update docs

* More docs updates
2019-10-24 11:14:15 -07:00

910 B
Raw Blame History

id, title
id title
can-i-use-decorators Can I Use Decorators?

Some popular libraries use decorators in their documentation.

Create React App intentionally doesnt support decorator syntax at the moment because:

  • It is an experimental proposal and is subject to change (in fact, it has already changed once, and will change again).
  • Most libraries currently support only the old version of the proposal — which will never be a standard.

However in many cases you can rewrite decorator-based code without decorators and achieve the same result.

Please refer to these two threads for reference:

Create React App will add decorator support when the specification advances to a stable stage.