Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
303 B
Plaintext
12 lines
303 B
Plaintext
import {version} from 'react';
|
|
|
|
export function inertValue(value?: boolean): string | boolean | undefined {
|
|
const pieces = version.split('.');
|
|
const major = parseInt(pieces[0], 10);
|
|
if (major >= 19) {
|
|
return value;
|
|
}
|
|
// compatibility with React < 19
|
|
return value ? 'true' : undefined;
|
|
}
|