We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d642a commit 1de62fdCopy full SHA for 1de62fd
example/index.tsx
@@ -26,22 +26,20 @@ export const Example = () => {
26
padding: '3rem',
27
}}
28
/>
29
- {rect && (
30
- <div
31
- style={{
32
- display: 'flex',
33
- alignItems: 'center',
34
- justifyContent: 'center',
35
- color: 'white',
36
- width: `${rect.width / 2}px`,
37
- height: `${rect.height / 2}px`,
38
- backgroundColor: 'green',
39
- padding: '3rem',
40
- }}
41
- >
42
- I am always half the size!
43
- </div>
44
- )}
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ color: 'white',
+ width: `${rect.width / 2}px`,
+ height: `${rect.height / 2}px`,
+ backgroundColor: 'green',
+ padding: '3rem',
+ }}
+ >
+ I am always half the size!
+ </div>
45
</div>
46
)
47
}
0 commit comments