{Component.text(
"Welcome to the Functional Bookstore, your one-stop shop for the most absurd and delightful functional programming literature in the known universe.",
@@ -461,49 +466,52 @@ let aboutPage = () => {
}
-/* ProductCard Component using JSX */
-type productCardProps = {product: product}
-
-let productCard = (props: productCardProps) => {
- let inCart = Computed.make(() => {
- let item = getCartItem(props.product.id)
- Option.isSome(item)
- })
+module ProductCard = {
+ /* ProductCard Component using JSX */
+ @jsx.component
+ let make = (~product: product) => {
+ let inCart = Computed.make(() => {
+ let item = getCartItem(product.id)
+ Option.isSome(item)
+ })
-