Skip to content

Commit

Permalink
Changed to match corresponding example.
Browse files Browse the repository at this point in the history
Considered making the examples use different items, but decided to keep them the same so that changes in code functionality are more clear.

Changed data back to match examples in the documentation.
  • Loading branch information
codyroberts authored Jun 6, 2024
1 parent e0e305d commit c7a65d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export const Item = component$<ItemProps>((props) => {
});

export default component$(() => {
const price = useSignal(2.99);
const price = useSignal(9.99);

return (
<>
<h1>Props</h1>
<Item name="screwdriver" price={price} quantity={10} />
<Item name="hammer" price={price} quantity={5} />
</>
);
});

0 comments on commit c7a65d9

Please sign in to comment.