imgAlt={product.name}
example: the product name: HD Single Sided Cantilever Rack. so only HD Single Sided... should be printed
Here is code line
<ProductImg imgtext={products.description}/>
imgAlt={product.name}
example: the product name: HD Single Sided Cantilever Rack. so only HD Single Sided... should be printed
Here is code line
<ProductImg imgtext={products.description}/>
const message = 'HD Single Sided Cantilever Rack.'
const cutTitleFunction = (text) =>{
return text.split(' ').slice(0,3).join(' ') +'...'
}
console.log(cutTitleFunction(message)) //return HD Single Sided...