Guest User

Untitled

a guest
Jan 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. componentWillMount() {
  2. var ids = [];
  3. this.props.data.map((dataImage,Index) => {
  4. dataImage['main-head'].map((subchild,Index2) => {
  5. ids.push(subchild['path'])
  6. })
  7.  
  8. })
  9. this.setState({current_cat_id: ids})
  10. }
Add Comment
Please, Sign In to add comment