• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

react-function-to-class

Convert functions to React classes in a keystroke
  • #refactor
  • #react
germtb
0.2.4 2,799
2
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Convert functions to classes

  • There is no default keybinding for this package. Create your own pointing to: react-function-to-class:toClass or use it from the command palette.

Supports arrow functions, anonymous functions and function declarations.

Configuration

You can extend anything you like: React.Component, React.PureComponent, Inferno.Component...

Optionally auto-implement methods you might want to use:

  • constructor
  • componentWillMount
  • componentDidMount

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by