Skip to content

Commit 2749dbd

Browse files
committed
Chore: Update typescript example to remove custom merge now that deep merge handles it
1 parent 718c636 commit 2749dbd

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

examples/typescript/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ const App = () => {
4141
<HostComponentWithHOC
4242
ref={hostCompRef}
4343
style={{ color: 'white', height: 100, width: 100, backgroundColor: '#000000' }}
44-
sm={(baseProps) => ({
45-
...baseProps,
46-
style: { ...baseProps.style, backgroundColor: 'palevioletred' },
44+
sm={{
45+
style: { backgroundColor: 'palevioletred' },
4746
children: 'sm',
48-
})}
49-
md={(baseProps) => ({
50-
...baseProps,
51-
style: { ...baseProps.style, backgroundColor: 'brown' },
47+
}}
48+
md={{
49+
style: { backgroundColor: 'brown' },
5250
children: 'md',
53-
})}
51+
}}
5452
>
5553
overridden
5654
</HostComponentWithHOC>

0 commit comments

Comments
 (0)