I investigated a lot of topics about using button as a link but didn't found a solution for me - I need to open a certain page in a new tab using React bootstrap button.
<Button onClick={() => onClickOpenVacancy(id)}>
React bootstrap offers a prop 'href' but no info how to open in new tab. Any suggestions, please?
You should use
href
andtarget
together:It looks like they just leave
target
with typeany
without further documentation. It just works the same way as the attribute that exists on the usual<a>
tag does.