This commit is contained in:
Nathan Bierema 2022-10-14 09:35:11 -04:00
parent a2579a8669
commit aa96457313
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,8 @@ export function mapProps<In, Out>(
render(): ReactNode {
const mappedProps = mapper(this.props);
return <Comp {...mappedProps} />;
// TODO Not really sure why this is needed, but it is
return <Comp {...(mappedProps as Out & JSX.IntrinsicElements)} />;
}
static displayName = `mapProps(${

View File

@ -55,6 +55,9 @@ export function compareJSONPrimitive<
return 0;
}
if (a == null) return -1;
if (b == null) return 1;
return a > b ? 1 : -1;
}