Warning: Invalid value for prop `dispatch` on <span> tag
You are not spreading dispatch from props passing to Tag
const Text = ({
tagName = 'span',
className = '',
children = null,
dispatch,
...restProps
})
We have to pass a noop (() => {}
) in order to not pass dispatch
to the connected component.
Other option might be some kind of a props mapper, e.g. recompose's mapProps.