Last active
December 2, 2016 00:32
-
-
Save SiestaMadokaist/67e74c9543494ec5e8ade8cfc13efe5c to your computer and use it in GitHub Desktop.
just something.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import EnemyView from 'components/Seven/EnemyView'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import EnemiesActions from 'actions/Seven/EnemiesActions'; | |
@connect(state => ({})) | |
export default class EnemiesView extends React.Component { | |
render(){ | |
const { enemies, dispatch } = this.props; | |
return ( | |
<div className="seven-enemies-view"> | |
{ | |
enemies.map((enemy, index)=> { | |
return (<EnemyView enemy={enemy} {...bindActionCreators(EnemiesActions, dispatch)} />) | |
}) | |
} | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment