import React from 'react' ; import { connect } from 'ice' ; import Child from './Child' ; const Home = ( props ) => { const { userState } = props ; return ( < > < div > page stars : { userState . stars } < /div> < Child / > { } < />); } ; const mapState = state => ( { userState : state . user , } ) ; export default connect ( mapState ) ( Home ) ;