Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentWillMount() {
- var ids = [];
- this.props.data.map((dataImage,Index) => {
- dataImage['main-head'].map((subchild,Index2) => {
- ids.push(subchild['path'])
- })
- })
- this.setState({current_cat_id: ids})
- }
Add Comment
Please, Sign In to add comment