Created
June 17, 2019 17:49
-
-
Save xthecapx/3cd3c8f00f72c465a3aace0e67c7c1c6 to your computer and use it in GitHub Desktop.
Revisions
-
xthecapx revised this gist
Jun 17, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,6 @@ const ProductAlerts = ({ product }) => { } return <div className="product-alerts">{productAlerts}</div> }; export default ProductAlerts; -
xthecapx created this gist
Jun 17, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import React from 'react'; import {products} from './products'; const ProductAlerts = ({ product }) => { let productAlerts; if (product.price > 700) { productAlerts = <p><button>Notify Me</button></p>; } return <div className="product-alerts">{productAlerts}</div> };