Convert to function component

Turns a component into a functional component defined as a function.

How it works

With arrow component
  • Transforms component arrow function into a function
With class component

Works with

  • Functional components defined as an arrow function
  • Class components
  • Higher order functional components defined as an arrow function
  • Higher order class components

Packages

  • react

Examples

© 2018 - 2019 Kamil Mielnik & Yuriy Yakym. All rights reserved.