let renderBody = (props) => {
console.log('render body')
$('#body').html(props.body)
}
mapStateToProps = (state) => {
return { body: state.body }
}
renderBody = connect(mapStateToProps)(renderBody)
let renderFooter = (props) => {
console.log('render footer')
$('#footer').html(props.footer)
}
mapStateToProps = (state) => {
return { footer: state.footer }
}
renderFooter = connect(mapStateToProps)(renderFooter)