0
http://codepen.io/naveennsit/pen/oxRwYM反応の配列のデータを表示するには?
HI リストのデータをリストに表示しようとしています。なぜ私は未定義のエラーを取得していますか?
は、ここでその文字列リテラルにそれらを回すとあなたは、引用符で小道具をラップするべきではありません http://codepen.io/naveennsit/pen/oxRwYM
var stations = [
{call:'station one',frequency:'000'},
{call:'station two',frequency:'001'}
];
class App extends React.Component {
render(){
var stationComponents = this.props.name.map(function(station) {
return <div className="station">{station.call}</div>;
});
return <div>{stationComponents}</div>;
}
handleClick(e){
alert('--')
}
}
React.render(<App name='{stations}'>ssssss</App>,document.getElementById('app'))
''を削除する必要があります。 '<アプリケーション名= {ステーション}> ssssss' –
ありがとうございましたsolutuion ..any react js良いチュートリアル – user944513