I'm having trouble trying to reroute onClose of a modal from Semantic UI React.
For some reason, Redirect to tag from react router dom does not trigger the redirect.
Here is the code:
<Modal size='tiny' closeIcon defaultOpen onClose={() => <Redirect to='/'/>}>
</Modal>