Export a List inside a Component in ReactJS

后端 未结 0 378
感动是毒
感动是毒 2021-01-27 04:39

I am working on this Search.js file like the following:

const Searchbar = () => {
...
   const getResults = async () => {
         List=[...]
} 
}

export {         


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