Is there a way to get React Router to open a link in new tab? I tried this and it did not work.
We can use the following options:-
// first option is:-
// second option is:-
var href = this.props.history.createHref('myRoute', myParams);
//third option is:-
var href = '/myRoute/' + myParams.foo + '/' + myParams.bar;
We can use either of three option to open in new tab by react routing.