I am attempting to redirect on clicking an item, however the redirect doesn't seem to render...
const doRedirect = () => {
console.log('redirecting');
return <Redirect to='/my-path' />;
}
return <div onClick={() => doRedirect()}>Click me</div>;
When I click the div, it is hittin the console log just fine, however I can't seem to get it to return the redirect...