Hello guys i have some static content on my website and want to make some dynamic content so I have 5 different news and want to give them unique ID for example while u prees on read more u must got
id:2 title: President-Elections
so I try to make some array
const posts = [
{id: 1, title: "some title", content: "some content"},
{id: 2, title: "some title2", content: "some content2"},
{id: 3, title: "some title3", content: "some content3"},
{id: 4, title: "some title4", content: "some content4"},
{id: 4, title: "some title5", content: "some content5"},
];
Now I want to assing each post unique id but have not idea how to do.