if I define a variable :
let text = "\\href{https://katex.org/}{\KaTeX}";
Then call
<Latex trust={true} throwOnError={false}>{text}</Latex>
it does not display a hyperlink. It directly prints the content of the text variable without interpreting it.
I also tried with \href instead of \href and I got the same result.