Use the best bits of ES6 to parse your path without stress 👋
const Docs = parsed`docs``get`;
const Github = parsed.https`github.com`
const Username = Github`${props => props.username}`
const Repo = parsed(Username)`parsed-path`
render(
<>
<Docs as={Button}>Documentation</Docs>
<Repo
as={Button}
username="tseijp"
target="_blank"
rel="noopener"
primary>
Github
</Repo>
</>
)