我正在建立一个天气预报应用程序从这个(openweathermap.org)网站的应用程序接口。为此,我使用了两个依赖项,例如1.“com.squareup.refitt2:retrofit:2.9.0”和2."com.squareup.retrofit2:converter-gson:2.9.0“循环引用:com.android.tools.r8.a:仅Android O (--min-api26)开始支持Invoke-customs
现在我该如何
clickCreate("test")} id="createBtn" className="fas fa-5x fa-microphone-alt"></i> );现在,我想在函数中获取API。我不应该在函数中使用useState和useEffect,但是如何通过单击btn触发API呢?
." which is neither a <e