const data = {
name: "Neil Rhodes,
email: "rhodes@hmc.edu,
phone: "(909) 555-1212"
};
and modify the render call so that it fills in the information from the data.
const data = [
{
id: 512,
name: "Neil Rhodes",
email: "rhodes@hmc.edu",
phone: "(909) 555-1212"
},
{
id: 787,
name: "Barack Obama",
email: "ex-prez@whitehouse.gov",
phone: "(312) 555-1212"
}
];
Adjust the render call so that it loops through the array generating something like:
Hint: the id field would make a good unique value for each list child.