Populating values outside the App() function with current location(latitude and longitude) values to use to output the temperatures at that location
I am trying to Populating values outside the App() function with current location(latitude and longitude) values to use to output the temperatures at that location. Any ideas? I have tried, useState, document.getElementbyId. But it still does not render the current location or gives errors. When I move the WeatherApi code inside the App() then I need to write an async. I do not want to change the WeatherApi code much. Just want to populate the param values. Any ideas? import 'bootstrap/dist/css/bootstrap.css'; import { fetchWeatherApi } from "openmeteo"; import { useEffect, useState } from 're
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.