Skip to main content
PRONeed enterprise-grade codemods tailored to your codebase?

Assess, plan, evolve.

Reusable compiler-aware skills that help coding agents understand, plan, and safely evolve your codebase.

17 packages

Sort by
class-to-function-component

Transform React class components to modern function components

  • react
  • transformation
  • +4
Kkouroshko avatarkouroshko
v0.1.7
587
8 months ago
react/replace-react-fc-typescript

This codemod removes `React.FC`, `React.FunctionComponent` and `React.SFC` and replaces the Props as the type of the unique argument in the component definition. This codemod supports: - Inline defined props. - Generics. - Props defined with intersection. - Component modules defined using intersection. - Regular named functions. - Functions that accept a component definition. - Using FC, FunctionComponent and SFC as a named export. ## Before: ```jsx type Props2 = { id: number }; export const MyComponent2: React.FC<Props2> = (props) => { return <span>{props.id}</span> } ``` ## After: ```tsx type Props2 = { id: number }; export const MyComponent2 = (props: Props2) => { return <span>{props.id}</span>; }; ```

  • react
  • migration
CCodemod
v1.0.6
408
a year ago
react-mui-jss-styles-to-tss-react-hook-migration

Transform React components using Material UI JSS APIs (e.g., makeStyles/withStyles/createStyles) into strongly typed `tss-react` hook-based styling (`makeStyles` from `tss-react/mui`) in TypeScript React codebases, improving maintainability and type safety while modernizing legacy styling patterns.

  • cross-migration
  • react
  • +2
Mmohebifar avatarmohebifar
v0.1.0
0
5 months ago
react-stable-map-keys

Replace React .map() index-as-key with stable keys (item.id) when verifiable, otherwise add TODO

  • react
  • standardization
  • +2
Aalexbit-codemod avataralexbit-codemod
v0.1.0
1
7 months ago
react-router-v6-to-v7-pro

Professional React Router v6 to v7 migration - 7 transforms, zero false positives

  • upgrade
  • breaking-change
  • +3
Aarpit2222 avatararpit2222
v1.0.0
3
5 months ago
react-router-v6-to-v7-full

Automated codemod to migrate React Router v6 projects to v7. Handles import rewrites, future flags, RouterProvider fix, json/defer removal, fallbackElement migration, and formMethod casing.

  • upgrade
  • breaking-change
  • +3
Aarpit2222 avatararpit2222
v1.0.0
0
5 months ago
codemod/mine-react-components

Read-only React component inventory for Insights dashboards across JavaScript and TypeScript codebases

  • react
  • component-inventory
  • +3
Ccodemod avatarcodemod
v0.0.1
2
3 months ago
mui-grid-v2-props-migration-react

Automatically rewrite legacy Grid v2 props to the current Material UI Grid API for React projects using `@mui/material/Grid2`, `@mui/system/Grid`, or `@mui/joy/Grid`, including deterministic prop renames/removals and safe JSX cleanup.

  • transformation
  • migration
  • +5
Mmohebifar avatarmohebifar
v0.1.0
0
5 months ago
react-a11y-mining-prime-field-1q5l

Read-only React accessibility mining codemod for Cal.com Insights dashboards.

  • analysis
  • accessibility
  • +2
Aalexbit-codemod avataralexbit-codemod
v0.0.1
1
4 months ago
react-router/4/move-hoc-to-global-scope

Moves HOC calls to the global scope ## Example ### Before ```ts <Router history={browserHistory}> <Switch> <Route path='/' render={(props) => ( <Route exact path='/a' component={HOC(PageComponent)} /> )} /> </Switch> </Router>; ``` ### After ```ts const HOCPageComponent = HOC(PageComponent); <Router history={browserHistory}> <Switch> <Route path='/' render={(props) => ( <Route exact path='/a' component={HOCPageComponent} /> )} /> </Switch> </Router>; ```

  • react
  • react router
  • +1
CCodemod
v1.0.2
3
a year ago
zhengxuyu/wagmi-v1-to-v2

Migrate wagmi React hooks from v1 to v2

  • transformation
  • migration
  • +5
Zzhengxuyu avatarzhengxuyu
v0.1.0
0
5 months ago
render-boundary-read-miner

Detect expensive cross-boundary reads inside React render paths

  • code-mining
  • react
  • +1
Aalexbit-codemod avataralexbit-codemod
v0.1.3
0
3 months ago

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.