distinguish files written with JSX from files written in plain js in React.
Asked
Active
Viewed 28 times
0
-
@zolty13 thanks for a quick answer. – Jun 09 '21 at 07:53
-
Basically it's for human use so that YOU, the human, can easily tell that the file is a JSX file and not a regular javascript file without opening it. For the same reason you can code in JSX and save it as mycode.pdf or mycode.doc and tell React explicitly to compile them but YOU, the human, may confuse them as Adobe pdf files (instead of JSX files) or Microsoft Word files because you look at the file names and make some assumptions. – slebetman Jun 09 '21 at 07:57