Renders product/variant descriptions with HTML support, escape sequences, and template variables
This function handles:
import { renderDescription } from '@makerinc/react-sdk';function ProductCard({ product }) { return ( <div> <h2>{product.name}</h2> {renderDescription({ text: product.description || '', product, isRichText: true, isPreWrapped: true })} </div> );} Copy
import { renderDescription } from '@makerinc/react-sdk';function ProductCard({ product }) { return ( <div> <h2>{product.name}</h2> {renderDescription({ text: product.description || '', product, isRichText: true, isPreWrapped: true })} </div> );}
Renders product/variant descriptions with HTML support, escape sequences, and template variables
This function handles: