We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 718c636 commit 2749dbdCopy full SHA for 2749dbd
1 file changed
examples/typescript/index.tsx
@@ -41,16 +41,14 @@ const App = () => {
41
<HostComponentWithHOC
42
ref={hostCompRef}
43
style={{ color: 'white', height: 100, width: 100, backgroundColor: '#000000' }}
44
- sm={(baseProps) => ({
45
- ...baseProps,
46
- style: { ...baseProps.style, backgroundColor: 'palevioletred' },
+ sm={{
+ style: { backgroundColor: 'palevioletred' },
47
children: 'sm',
48
- })}
49
- md={(baseProps) => ({
50
51
- style: { ...baseProps.style, backgroundColor: 'brown' },
+ }}
+ md={{
+ style: { backgroundColor: 'brown' },
52
children: 'md',
53
54
>
55
overridden
56
</HostComponentWithHOC>
0 commit comments