我正在尝试在js变量中制作一个新组件

时间:2018-06-21 23:04:39

标签: reactjs components

我正在尝试在js变量中创建一个新组件。这是我的代码

Dim IE As Process = Process.Start("iexplore.exe", "google.com")

但在课程组件和控制台中未显示结果给我这个错误

class CourseSales extends Component {
    render(){
        var Course = this.props.items.map((item,i) => {
            return <Course name={item.name} price={item.price} key={i}/>
        });
       return(
           <div>
               <h1>Purchase your fav. course</h1>
               <p>{this.Course}</p>
           </div>
      );
   }
}

1 个答案:

答案 0 :(得分:1)

df2 = pd.read_sql("select airport from "+db+" where airport in "+list_NA+"", conn) 未定义。将值分配给TypeError: Can't convert 'list' object to str implicitly 不会自动将该值分配给from bs4 import BeautifulSoup import urllib.request user_agent = 'Mozilla/5.0' headers = {'User-Agent': user_agent } target_url = 'https://www.google.co.kr/search?q=cat&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjtrZCg7uXbAhVaUd4KHc2HDgIQ_AUICygC&biw=1375&bih=842' request = urllib.request.Request( url=target_url, headers=headers ) req = urllib.request.urlopen(request) soup = BeautifulSoup(req.read(), 'html.parser') 。无需将数组保存到this.Course。我建议以下内容:

var Course