Preact/X/Default Import To Namespace Import

/icons/calendar.svg

Last update

Aug 21, 2024

A codemod that converts named imports of Preact to namespace imports for improved compatibility and consistency.

Before

import Preact from 'preact';

After

import * as preact from 'preact';

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now