Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Support destructuring inside function declaration #11

Open
camjc opened this issue May 13, 2017 · 0 comments
Open

Support destructuring inside function declaration #11

camjc opened this issue May 13, 2017 · 0 comments

Comments

@camjc
Copy link

camjc commented May 13, 2017

Currently the codemod produces

const FooComponent = (props: Props) => {
  const { myProp } = props;

from

const FooComponent = ({ myProp }) => {

It'd be awesome if it could keep the destructuring within the () instead of breaking them out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant