aboutsummaryrefslogtreecommitdiff
path: root/docs/ecosystem/react.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ecosystem/react.md')
-rw-r--r--docs/ecosystem/react.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ecosystem/react.md b/docs/ecosystem/react.md
index 197edb30f..84f1a4536 100644
--- a/docs/ecosystem/react.md
+++ b/docs/ecosystem/react.md
@@ -19,23 +19,23 @@ $ bun run react.tsx
<Component message="Hello world!" />
```
-### Prop punning
+### Prop punning
-The Bun runtime also supports "prop punning for JSX. This is a shorthand syntax useful for assigning a variable to a prop with the same name.
+The Bun runtime also supports "prop punning" for JSX. This is a shorthand syntax useful for assigning a variable to a prop with the same name.
```tsx
function Div(props: {className: string;}) {
const {className} = props;
-
+
// without punning
return <div className={className} />;
// with punning
return <div {className} />;
-
}
```
### Server-side rendering
+
To server-side render (SSR) React in an [HTTP server](/docs/api/http):
```tsx#ssr.tsx