Skip to content

Commit

Permalink
Support jsx fragment shorthands in the element panel / crud operations
Browse files Browse the repository at this point in the history
adeira-source-id: 04deea92c9984e5e5045a37796152c19f4d1db7e
  • Loading branch information
itsdouges authored and triplex-bot committed Jan 2, 2025
1 parent 6be0f07 commit f03da4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-dogs-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@triplex/server": patch
---

Shorthand jsx fragments are now supported.
11 changes: 7 additions & 4 deletions examples/test-fixture/src/scene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
* file in the root directory of this source tree.
*/
import { MapControls, PerspectiveCamera } from "@react-three/drei";
import { Fragment } from "react";
import Box from "./geometry/box";

export function Plane() {
return (
<mesh>
<planeGeometry />
<meshBasicMaterial color={"#dd8d8d"} visible={true} />
</mesh>
<Fragment>
<mesh>
<planeGeometry />
<meshBasicMaterial color={"#dd8d8d"} visible={true} />
</mesh>
</Fragment>
);
}

Expand Down

0 comments on commit f03da4f

Please sign in to comment.