src/templates/product.js
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const product = this.props.data.shopify.shop.productByHandle
let variant = this.state.selectedVariant || product.variants.edges[0].node
let variantImage = this.state.selectedVariantImage || product.images.edges[0].node.src