aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Damian Stasik <github@coded.pl> 2023-02-25 11:45:12 +0100
committerGravatar GitHub <noreply@github.com> 2023-02-25 02:45:12 -0800
commit31627530b975cba7d002e937a62a5fe3a41f29bc (patch)
tree7d075f46082aac7b1c93a830a7419352d9cc891c
parentae628253197cf9b5ff999faa71c242391e8e5765 (diff)
downloadbun-31627530b975cba7d002e937a62a5fe3a41f29bc.tar.gz
bun-31627530b975cba7d002e937a62a5fe3a41f29bc.tar.zst
bun-31627530b975cba7d002e937a62a5fe3a41f29bc.zip
docs: use proper CSS property in React examples (#2177)
-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>
);
}