Skip to content

Commit bf443d0

Browse files
committed
edit some code
1 parent 0fe1407 commit bf443d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ALVI.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function TotalCountryAPI() {
4040

4141
//Destructuring api
4242
function CountryAPIDetail({ allCountry }) {
43-
const { name, region, subregion, capital, flags } = allCountry;
43+
44+
const { name, region, subregion, capital, flags, population } = allCountry;
45+
4446
return (
4547
<div>
4648
<hr />
@@ -50,6 +52,7 @@ function CountryAPIDetail({ allCountry }) {
5052
<h3>Capital : {capital[0]}</h3>
5153
<h3>Region : {region}</h3>
5254
<h3>Region : {subregion}</h3>
55+
<h3>Population : {population}</h3>
5356
<hr />
5457
</div>
5558
)

0 commit comments

Comments
 (0)