Reactjs: How to replace/mask with dummy url onClick of the link?

How to replace/mask the onClick url to a dummy url, I want to replace with different domain, can we replace with the different domain url? For example: From 'mysite.com/original' to 'duplicatesite.com/dummy'