Skip to content

Commit

Permalink
Refactor conditional rendering to best practices in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hichemfantar committed Sep 11, 2024
1 parent 1d6b4b7 commit 00f00ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Make contents conditional:
```jsx
{
condition && <mesh geometry={nodes.robot.geometry} material={materials.metal} />
condition ? <mesh geometry={nodes.robot.geometry} material={materials.metal} : null/>
}
```
Expand Down

0 comments on commit 00f00ca

Please sign in to comment.