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 45ea112 commit 9ab1964Copy full SHA for 9ab1964
tests/playground/playground.tsx
@@ -14,6 +14,7 @@ type Mode = keyof typeof MODES
14
15
const App = () => {
16
const [activeComponent, setActiveComponent] = useState<Mode>('claude')
17
+ const ModeComponent = MODES[activeComponent].component
18
19
return (
20
<div className='min-h-screen bg-slate-100'>
@@ -43,10 +44,7 @@ const App = () => {
43
44
</div>
45
46
<div className='popup-frame'>
- {(() => {
47
- const Component = MODES[activeComponent].component
48
- return <Component />
49
- })()}
+ <ModeComponent />
50
51
52
0 commit comments