While skimming through source code of one of the React UI libraries, I've come across this code pattern (I simplify):
function Test() {
let Button = "button";
// ...
return <Button>Click me</Button>;
}
What's going on here - why does this work?:)