Skip to content

Instantly share code, notes, and snippets.

@SiestaMadokaist
Last active December 2, 2016 00:32
Show Gist options
  • Save SiestaMadokaist/67e74c9543494ec5e8ade8cfc13efe5c to your computer and use it in GitHub Desktop.
Save SiestaMadokaist/67e74c9543494ec5e8ade8cfc13efe5c to your computer and use it in GitHub Desktop.
just something.
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