Closed harishjartarghar closed 4 years ago
simple technique of creating key for reviews
const addReview=(review)=>{ review.key=(reviews.length+1).toString(); setReviews((currentReview)=>{ return [review,...currentReview] }); setModal(false); }
simple technique of creating key for reviews