I have Card
which is redirecting on external URL on click. But instead of using location.href
, I need to use redux-router
's .push
command. How can I do this?
Simple example of the code:
<Card
return (
title={props.title}
onClick={() => {
location.href='www.example.com'
}}
)
If I use this props.navigate('www.example.com')
it is returning the URL like a parameter on the localhost.