Currently, the fetching, setting of the city, etc. is being done in App.js. Instead, what we can do is create a separate component for this and then import this in App.js. This would also allow me and @Aryaman1706(ISSUE #5 ) to go ahead with using React Context for making the city data available globally instead of prop-drilling.
If this is fine, I can go ahead and make a pr for this change.
Currently, the fetching, setting of the city, etc. is being done in
App.js
. Instead, what we can do is create a separate component for this and then import this inApp.js
. This would also allow me and @Aryaman1706(ISSUE #5 ) to go ahead with usingReact Context
for making the city data available globally instead ofprop-drilling
.If this is fine, I can go ahead and make a pr for this change.
CC: @khattakdev @wrussell1999