Skip to content

Commit 4cfec27

Browse files
committed
Add todo
1 parent 23114d1 commit 4cfec27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/packages/@reactpy/client/src/components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function ScriptElement({ model }: { model: ReactPyVdom }) {
135135
ref.current.appendChild(scriptElement);
136136
}, [model.key]);
137137

138+
// FIXME: We currently return an extraneous div to attach the script to, but there
139+
// might be a better way to do this.
138140
return <div ref={ref} />;
139141
}
140142

0 commit comments

Comments
 (0)