score:0

you're connecting your test component to redux -- which wants to pass in props -- yet you're not accepting any constructor params, so they're not getting passed in. if you just omit your constructor override i think this will work.

edit:

class test extends component<{}> {
  constructor(props = {}) {
    super(props);
  }

  render() {
    return null
  }
}

i think this default prop param will now mean you don't have to send in a {} when instantiating test.


Related Query

More Query from same tag