v24

Orbit Migration Guide v24

Breaking changes

Required React version

Prop removal in OrbitProvider

import { OrbitProvider } from "@kiwicom/orbit-components";
<OrbitProvider useId={...}>
<App />
</OrbitProvider>;
import { OrbitProvider } from "@kiwicom/orbit-components";
// No need for custom ID generation, React 18's useId is used automatically
<OrbitProvider>
<App />
</OrbitProvider>;

Codemod

npx jscodeshift -t https://raw.githubusercontent.com/kiwicom/orbit/master/packages/orbit-components/transforms/transforms-v24.js --parser=tsx --extensions=ts,tsx <pathToYourCode>