that displays location from your input written with react
- first things first you need to clone the repo.
- first step is successful all you need is npm install or npm i.
- next get a
Google map api key
(this step is not compulsory you should see the map with a developer cover over it). - if you got the key follow the next 3 steps.
- you need to navigate to
src/major-sections/map_section.jsx
- locate line 39
<LoadScript googleMapsApiKey={process.env.API_KEY}>
- replace
process.env.API_KEY
with your api key (put it in quotation marks example 'api key' or "api key" ) - save and npm run start or npm start
for those who just want to see the api calls navigate to src/utils/DispatchHandler.js
that's where all the api's are consumed.
also if both textfield's are not filled or if already processing another submission the submit button will do nothing