Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire - Ren #34

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
adds key to final poem map per react warning
Ren Carothers committed Jan 8, 2021
commit 7d88279d7a8d0a7fbb4086efb7bf1100caa8ec8c
4 changes: 2 additions & 2 deletions src/components/FinalPoem.js
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import './FinalPoem.css';

const FinalPoem = ({isSubmitted, submissions, revealPoem}) => {

const prettyPrintPoem = submissions.map((poem) => (
<p>{poem}</p>
const prettyPrintPoem = submissions.map((poem, index) => ( // why couldn't I use {} here?
<p key={index}>{poem}</p>
));

if (isSubmitted) {