Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • 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.
257 changes: 154 additions & 103 deletions src/components/App.js
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;

0 comments on commit 44216be

Please sign in to comment.