Files
babel/doc/react.md
Sebastian McKenzie 4bd4e4cdbe fix sh doc code blocks
2014-11-30 11:10:57 +11:00

402 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