-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shreya Chandra
authored and
Shreya Chandra
committed
Nov 22, 2020
1 parent
8d8ef97
commit 44216be
Showing
1 changed file
with
154 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,161 @@ | ||
import React, {Component, useState} from "react"; | ||
import React, { Component, useState } from "react"; | ||
import "./../styles/App.css"; | ||
|
||
// Do not alter the states const and values inside it. | ||
const states = [{ | ||
name : "Madhya Pradesh", | ||
cities :[{ | ||
name : "Indore", | ||
towns :[{ | ||
name : "Mhow" | ||
},{ | ||
name : "Dewas" | ||
}] | ||
},{ | ||
name : "Bhopal", | ||
towns :[{ | ||
name : "Manit" | ||
},{ | ||
name: "Berasia" | ||
}] | ||
},{ | ||
name : "Gwalior", | ||
towns :[{ | ||
name : "Ajaypur" | ||
}] | ||
}] | ||
},{ | ||
name : "Jharkhand", | ||
cities :[{ | ||
name : "Dhanbad", | ||
towns :[{ | ||
name : "IIT(ISM) Dhanbad" | ||
},{ | ||
name : "Hirapur" | ||
}] | ||
},{ | ||
name : "Wasseypur", | ||
towns :[{ | ||
name : "Sardar khan's" | ||
},{ | ||
name : "Faizal khan's" | ||
}] | ||
},{ | ||
name : "Mirzapur", | ||
towns :[{ | ||
name : "Kaleen bhaiya's" | ||
},{ | ||
name : "Guddu bhaiya's" | ||
}] | ||
}] | ||
},{ | ||
name : "Assam", | ||
cities :[{ | ||
name : "Guwhati", | ||
towns :[{ | ||
name : "Amin" | ||
},{ | ||
name : "Jalah" | ||
}] | ||
},{ | ||
name : "Jungle1", | ||
towns :[{ | ||
name : "Tiger found at IIT Guwahati" | ||
},{ | ||
name : "Leopard found in IIT Guwahati" | ||
}] | ||
},{ | ||
name : "Tezpur", | ||
towns :[{ | ||
name : "Dibrugarh" | ||
},{ | ||
name : "Silchar" | ||
}] | ||
}] | ||
},{ | ||
name : "Bihar", | ||
cities :[{ | ||
name : "Patna", | ||
towns :[{ | ||
name : "Sonpur" | ||
},{ | ||
name : "Maner" | ||
}] | ||
},{ | ||
name : "Gaya", | ||
towns :[{ | ||
name : "Bakraur" | ||
},{ | ||
name : "Barachatti" | ||
}] | ||
},{ | ||
name : "Darbhanga", | ||
towns :[{ | ||
name : "Singhwara" | ||
},{ | ||
name : "Jale" | ||
}] | ||
}] | ||
}]; | ||
const states = [ | ||
{ | ||
name: "Madhya Pradesh", | ||
cities: [ | ||
{ | ||
name: "Indore", | ||
towns: [ | ||
{ | ||
name: "Mhow", | ||
}, | ||
{ | ||
name: "Dewas", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Bhopal", | ||
towns: [ | ||
{ | ||
name: "Manit", | ||
}, | ||
{ | ||
name: "Berasia", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Gwalior", | ||
towns: [ | ||
{ | ||
name: "Ajaypur", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Jharkhand", | ||
cities: [ | ||
{ | ||
name: "Dhanbad", | ||
towns: [ | ||
{ | ||
name: "IIT(ISM) Dhanbad", | ||
}, | ||
{ | ||
name: "Hirapur", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Wasseypur", | ||
towns: [ | ||
{ | ||
name: "Sardar khan's", | ||
}, | ||
{ | ||
name: "Faizal khan's", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Mirzapur", | ||
towns: [ | ||
{ | ||
name: "Kaleen bhaiya's", | ||
}, | ||
{ | ||
name: "Guddu bhaiya's", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Assam", | ||
cities: [ | ||
{ | ||
name: "Guwhati", | ||
towns: [ | ||
{ | ||
name: "Amin", | ||
}, | ||
{ | ||
name: "Jalah", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Jungle1", | ||
towns: [ | ||
{ | ||
name: "Tiger found at IIT Guwahati", | ||
}, | ||
{ | ||
name: "Leopard found in IIT Guwahati", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Tezpur", | ||
towns: [ | ||
{ | ||
name: "Dibrugarh", | ||
}, | ||
{ | ||
name: "Silchar", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Bihar", | ||
cities: [ | ||
{ | ||
name: "Patna", | ||
towns: [ | ||
{ | ||
name: "Sonpur", | ||
}, | ||
{ | ||
name: "Maner", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Gaya", | ||
towns: [ | ||
{ | ||
name: "Bakraur", | ||
}, | ||
{ | ||
name: "Barachatti", | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "Darbhanga", | ||
towns: [ | ||
{ | ||
name: "Singhwara", | ||
}, | ||
{ | ||
name: "Jale", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
|
||
function App() | ||
{ | ||
return ( | ||
<div id="main"></div> | ||
); | ||
function App() { | ||
return <div id="main"></div>; | ||
} | ||
|
||
|
||
export default App; |