(reactVersion: string)
| 7 | * See if React major version is 17+ by parsing version string. |
| 8 | */ |
| 9 | export function isAtLeastReact17(reactVersion: string): boolean { |
| 10 | const reactMajor = reactVersion.match(/^([^.]+)/); |
| 11 | return reactMajor !== null && parseInt(reactMajor[0]) >= 17; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Recurse through `error.cause` chain to set cause on an error. |
no test coverage detected