1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

beautified

This commit is contained in:
2016-09-01 13:11:17 +00:00
parent f8ccec7ae0
commit f8c89b4486
16 changed files with 107 additions and 104 deletions

View File

@@ -13,22 +13,22 @@ import * as actions from './redux/actions';
import Index from './pages/Index';
class Main extends React.Component{
render(){
return(
class Main extends React.Component {
render() {
return (
<div>{React.cloneElement(this.props.children, this.props)}</div>
);
}
}
function mapStateToProps(state){
function mapStateToProps(state) {
return {
redux: state.reducer
}
}
function mapDispatchToProps(dispatch){
return{
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators(actions, dispatch)
}
}
@@ -44,4 +44,4 @@ ReactDOM.render((
</Route>
</Router>
</Provider>
),document.getElementById('app'));
), document.getElementById('app'));