deploy: ebd4cc0010
This commit is contained in:
30
node_modules/shiki/samples/jsx.sample
generated
vendored
30
node_modules/shiki/samples/jsx.sample
generated
vendored
@@ -1,30 +0,0 @@
|
||||
function Item({ name, isPacked }) {
|
||||
if (isPacked) {
|
||||
return null;
|
||||
}
|
||||
return <li className="item">{name}</li>;
|
||||
}
|
||||
|
||||
export default function PackingList() {
|
||||
return (
|
||||
<section>
|
||||
<h1>Sally Ride's Packing List</h1>
|
||||
<ul>
|
||||
<Item
|
||||
isPacked={true}
|
||||
name="Space suit"
|
||||
/>
|
||||
<Item
|
||||
isPacked={true}
|
||||
name="Helmet with a golden leaf"
|
||||
/>
|
||||
<Item
|
||||
isPacked={false}
|
||||
name="Photo of Tam"
|
||||
/>
|
||||
</ul>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
// From https://react.dev/learn/conditional-rendering
|
||||
Reference in New Issue
Block a user