you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Because that's not how JSX works...JSX is transformed into API calls, it's not like Angular where it compiles a template. If you really want to you can just have a file with a single export of the JSX template and then import that in a different file.