babel/doc/react.md
2014-11-13 01:13:48 +11:00

397 B

React/JSX

6to5 has built-in support for React v0.12. Tags are automatically transformed to their equivalent React.createElement(...) and displayName is automatically inferred and added to all React.createClass calls.

Blacklist

To disable this behaviour add react to your blacklist:

to5.transform("code", { blacklist: ["react"] });
$ 6to5 --blacklist react