import React from ‘react’
import Image from “next/image”;
import { getStrapiMedia } from ‘…/_utils/getImage’;
import { BlocksRenderer, BlocksContent } from ‘@strapi/blocks-react-renderer’;
function ProductItem({product}) {
console.log(product);
const content = [
{
children: [{
type: ‘paragraph’, children: [{
type: ‘paragraph’, children: { text: product.attributes.description }
}]
}]
}
]
return (
{product.attributes.title}
)
}
export default ProductItem
Example object coming from Strapi: (Attached file)
How do I display the content as an actual table as shown instead of it displaying the entire code.
This topic has been created from a Discord post (1238384578578743317) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord