Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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>
export default ProductAlerts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.