Create Custom Data for Birthday Reminder App
In this step, we are going to create data that needs to be displayed on the website. Since this is a basic level application, we are going to create only 5 data in JavaScript object format. For this,
- Create a ‘data’ directory in the
srcfolder - Create a file named
data.js
- Add five person’s details in the below format and export it to use in other areas of the code.
export default [
{
id: 1,
name: "Roopa Dharshini",
age: 21,
image:
"https://res.cloudinary.com/diqqf3eq2/image/upload/v1595959131/person-2_ipcjws.jpg"
},
{
id: 2,
name: "Allen",
age: 22,
image:
"https://res.cloudinary.com/diqqf3eq2/image/upload/v1595959131/person-3_rxtqvi.jpg"
},
{
id: 3,
name: "Harish Raghavendar",
age: 20,
image:
"https://res.cloudinary.com/diqqf3eq2/image/upload/v1586883423/person-4_t9nxjt.jpg"
},
{
id: 4,
name: "Muthuganesan",
age: 23,
image:
"https://res.cloudinary.com/diqqf3eq2/image/upload/v1586883417/person-3_ipa0mj.jpg"
},
{
id: 5,
name: "Keerthana",
age: 22,
image:
"https://res.cloudinary.com/diqqf3eq2/image/upload/v1586883334/person-1_rfzshl.jpg"
}
];In the next lesson, we will look into the implementation of displaying the details in a formatted way.


