Class transform with property initializer by keyanzhang · Pull Request #54 · reactjs/react-codemod · GitHub

  • To sum up the todos I found so far.
  • import React from ‘ react ‘ ; class App extends React .
  • ‘ use strict ‘ ; var React = require ( ‘ react ‘ ) class Loader extends React .
  • keyanzhang added some commits Jun 8, 2016
  • ‘ use strict ‘ ; var React = require ( ‘ react ‘ ); const mixins = [ClassNameMixin, PureRenderMixin] var Loader = React .

Read the full article, click here.


@dan_abramov: “Words fail to describe how cool this codemod by @keyanzhang is. createClass + PropTypes => ES6 + properties + Flow!”


react-codemod – React codemod scripts


Class transform with property initializer by keyanzhang · Pull Request #54 · reactjs/react-codemod · GitHub