Skip to content

Commit

Permalink
fix: escape the style objects in JSX so that they're skipped by handl…
Browse files Browse the repository at this point in the history
…ebars
  • Loading branch information
painfulexistence committed Apr 26, 2024
1 parent 988e308 commit 8481438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/babylon/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const App = () => {
}, []);

return (
<canvas ref={canvasRef} style={{ width: 800, height: 450 }}/>
<canvas ref={canvasRef} style=\{{ width: 800, height: 450 }}/>
)
}

Expand Down
2 changes: 1 addition & 1 deletion templates/three/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./App.css";

const App = () => {
return (
<Canvas style={{ width: 800, height: 450 }}>
<Canvas style=\{{ width: 800, height: 450 }}>
<Suspense fallback={null}>
<directionalLight position={[0, 5, 0]} />
<mesh rotation-x={Math.PI * 0.25} rotation-y={Math.PI * 0.25}>
Expand Down

0 comments on commit 8481438

Please sign in to comment.