react-beautiful-dnd migration
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and dropInstallation
| Install | yarn add @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Codemod
Install
@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migrationas a runtime dependency.Run the codemod client with the following command.
npx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx,js [relativePath]Select the codemod based on which version of
react-beautiful-dndyou are migrating from:- Use
adoption-from-rbd-12for major version 12. - Use
adoption-from-rbd-13for major version 13.
- Use
Acknowledge and remove the comments left by the codemod.