Created
June 17, 2019 17:47
-
-
Save xthecapx/a7748493607ddd85e17a00bba3b2a9ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in the function body | |
let description; | |
if (product.description) { | |
description = <p>{`Description: ${product.description}`}</p> | |
} | |
// Bellow the h3 closing tag | |
{description} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment