Mmanishjha-04

preact/X/libraryAuthors-attribute-node-children-renaming

No description available

Legacy
preactXmigration
Public
0 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod is intended for library authors who are maintaining packages to be used with Preact X.

Detailed description:
This codemod refactors JSX-like virtual node objects by replacing the outdated nodeName and attributes properties with the current type and props properties. This update aligns your code with modern Preact conventions, ensuring compatibility and improving code clarity.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.