javascript - Root route component not connecting to redux -
i'm stuck on problem seems obvious: root component of router not being subscribed store changes , it's not receiving props though mapstatetoprops called. my routes defined plain objects: const createroutes = (store) => { path: '/', component: rootcomponent, indexroute: home, childroutes: [ subroute ] } export default createroutes then import object when creating app: let render = () => { const routes = require('./routes').default(store); reactdom.render( <appcontainer store={store} routes={routes} />, mount_node ) } my rootcomponent looks this: const rootcomponent = ({address, action}) => { <div> {console.log('addr: ' + address)} <button onclick={action}>test</button> </div> } const mapstatetoprops = (state) => { console.log('mapstatetoprops