aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/ecosystem/react.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ecosystem/react.md b/docs/ecosystem/react.md
index de134cb64..1be0bcdbb 100644
--- a/docs/ecosystem/react.md
+++ b/docs/ecosystem/react.md
@@ -4,7 +4,7 @@ Bun supports `.jsx` and `.tsx` files out of the box. Bun's internal transpiler c
function Component(props: {message: string}) {
return (
<body>
- <h1 style={{fontSize: 'red'}}>{props.message}</h1>
+ <h1 style={{color: 'red'}}>{props.message}</h1>
</body>
);
}
@@ -27,7 +27,7 @@ import {renderToReadableStream} from 'react-dom/server';
function Component(props: {message: string}) {
return (
<body>
- <h1 style={{fontSize: 'red'}}>{props.message}</h1>
+ <h1 style={{color: 'red'}}>{props.message}</h1>
</body>
);
}