Javascript – Is there a way to get the JSX/TSX of a React component from the code itself?
I am writing a page to illustrate how to use a component I've developed and I'd like to build pairs of examples (rendered) with TSX source code that produces the example, ideally not having to repeat the code twice. I'd…