Files
2026-08-07 21:39:30 +02:00

8 lines
226 B
JavaScript

import { isReactVersionAtLeast } from "./reactVersion.mjs";
export function inertValue(value) {
if (isReactVersionAtLeast(19)) {
return value;
}
// compatibility with React < 19
return value ? 'true' : undefined;
}