isischristopher / travel-diary

0 stars 0 forks source link

Print Cards to Dom #3

Open isischristopher opened 4 years ago

isischristopher commented 4 years ago

User Story

As a user, when I load the page, location cards are on the page, 3 cards per row.

AC

WHEN the page loads THEN places objects print to the DOM in a card AND each card contains an input box and a submit button.

Dev Notes

printToDom function is in javascripts/helpers/utilities.js use a for loop to loop through places array to print each object.

isischristopher commented 4 years ago

const printToDom = (divId, toPrint) => { $(#${divId}).html(toPrint); };