Advertisement
Guest User

Untitled

a guest
May 1st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let rain =4;
  2.     const numbers = [0, 1, 2, 3, 4, 5];
  3.     const listItems = numbers.map((number) =>
  4.     <ForecastTable
  5.       date={this.state.info.list[number].dt_txt}
  6.       desc={this.state.info.list[number].weather[0].description}
  7.       icon={"http://openweathermap.org/img/w/"+this.state.info.list[number].weather[0].icon + ".png"}
  8.       temp={this.state.info.list[number].main.temp}
  9.       tmin={this.state.info.list[number].main.temp_min}
  10.       wind={this.state.info.list[number].wind.speed}
  11.       clouds={this.state.info.list[number].clouds.all}
  12.       humidity={this.state.info.list[number].main.humidity}
  13.       rain={rain}
  14.       pressure={this.state.info.list[number].main.pressure}
  15.       />
  16.   );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement