You need to replace withRef with forwardRef as per the release notes:
The
withRefoption to connect has been replaced withforwardRef. If{forwardRef : true}has been passed toconnect, adding a ref to the connected wrapper component will actually return the instance of the wrapped component.
So in your case:
export default connect(
mapStateToProps, mapDispatchToProps, null, {forwardRef: true}
)(InviteReceiverForm)