I have been trying to write function which is HOC and the function exported like this using connect method from react-redux and wrapped it up in order to send props.
export default connect(
mapStateToProps,
mapDispatchToProps
)(WithTableList(LeadSourcePage, 'leadSource', columns));
I have been trying to exclude the connect method and use other react-redux hooks API to work with. How I can write in different way?