React js: Mutiple api. How do I swtich between api url with axios?

前端 未结 0 1933
囚心锁ツ
囚心锁ツ 2021-02-07 13:06

I want to switch to different url when i start to type.

    useEffect(() => {
    async function fetch(api = popularUrl) {
        const {
            data: {          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题