Convert individual React files to Next.js format
convert
command consumes 1 file conversion credit per file.
Each new account starts with 10 free conversion credits, and every migration credit purchased grants 10 additional conversion credits..tsx
, .ts
, .jsx
, and .js
files.--output ./converted/MyComponent.tsx
-o ../next-version/Header.tsx
router
- React Router to Next.js navigationhelmet
- React Helmet to Next.js Headclient
- Auto-detect and add ‘use client’ directivecontext
- React Context provider migrationall
- Apply all transformations (default)--transform router
--transform router,client
-t helmet,context
--dry-run
.Example:'use client'
directive:
useState
, useEffect
, etc.)onClick
, onChange
, etc.)window
, document
, localStorage
)--dry-run --show-diff
to see changes before applying them--transform
to apply specific changes and understand what each does--output
to save converted files separately when testingTry More Examples
Learn Full Migration
Read Best Practices