From 8d8ef97925da4590e0e03061f781713a816209c7 Mon Sep 17 00:00:00 2001 From: Shreya Chandra Date: Mon, 23 Nov 2020 03:38:01 +0530 Subject: [PATCH] Update App.js --- src/components/App.js | 164 +++++++++++++++++++++--------------------- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index de30d4c..4c39a55 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,108 +1,108 @@ import React, {Component, useState} from "react"; import "./../styles/App.css"; -// Do not alter the mentiones states variable and values inside it as test cases depend on it. - const states = [{ - name : "Madhya Pradesh", - cities :[{ - name : "Indore", - towns :[{ - name : "Mhow" - },{ - name : "Dewas" - }] +// Do not alter the states const and values inside it. +const states = [{ + name : "Madhya Pradesh", + cities :[{ + name : "Indore", + towns :[{ + name : "Mhow" },{ - name : "Bhopal", - towns :[{ - name : "Manit" - },{ - name: "Berasia" - }] + name : "Dewas" + }] + },{ + name : "Bhopal", + towns :[{ + name : "Manit" },{ - name : "Gwalior", - towns :[{ - name : "Ajaypur" - }] + name: "Berasia" }] },{ - name : "Jharkhand", - cities :[{ - name : "Dhanbad", - towns :[{ - name : "IIT(ISM) Dhanbad" - },{ - name : "Hirapur" - }] + name : "Gwalior", + towns :[{ + name : "Ajaypur" + }] + }] +},{ + name : "Jharkhand", + cities :[{ + name : "Dhanbad", + towns :[{ + name : "IIT(ISM) Dhanbad" },{ - name : "Wasseypur", - towns :[{ - name : "Sardar khan's" - },{ - name : "Faizal khan's" - }] + name : "Hirapur" + }] + },{ + name : "Wasseypur", + towns :[{ + name : "Sardar khan's" },{ - name : "Mirzapur", - towns :[{ - name : "Kaleen bhaiya's" - },{ - name : "Guddu bhaiya's" - }] + name : "Faizal khan's" }] },{ - name : "Assam", - cities :[{ - name : "Guwhati", - towns :[{ - name : "Amin" - },{ - name : "Jalah" - }] + name : "Mirzapur", + towns :[{ + name : "Kaleen bhaiya's" },{ - name : "Jungle1", - towns :[{ - name : "Tiger found at IIT Guwahati" - },{ - name : "Leopard found in IIT Guwahati" - }] + name : "Guddu bhaiya's" + }] + }] +},{ + name : "Assam", + cities :[{ + name : "Guwhati", + towns :[{ + name : "Amin" },{ - name : "Tezpur", - towns :[{ - name : "Dibrugarh" - },{ - name : "Silchar" - }] + name : "Jalah" }] },{ - name : "Bihar", - cities :[{ - name : "Patna", - towns :[{ - name : "Sonpur" - },{ - name : "Maner" - }] + name : "Jungle1", + towns :[{ + name : "Tiger found at IIT Guwahati" },{ - name : "Gaya", - towns :[{ - name : "Bakraur" - },{ - name : "Barachatti" - }] + 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 : "Darbhanga", - towns :[{ - name : "Singhwara" - },{ - name : "Jale" - }] + name : "Jale" }] - }]; + }] +}]; function App() { return ( -
+
); }