Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
by![](https://cdn.sanity.io/images/aho0e32c/production/61b763a05f41a7aea0b3b3265ff0fc83534ef28c-20x21.svg?w=20&fit=max&auto=format)
Codemod
Function To Arrow Export Default
Last update
May 14, 2024
Function to arrow export default
Description
Examples
Before
export default function Component(props) {}
After
const Component = (props) => {}export default Component
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community