There is something I find very confusing when working in React
.
There are plenty of examples available on internet which use .js
files with react but many others use .jsx
files.
I have read about .jsx
files and my understanding is that they just let you write html tags within your javascript
. But the same thing can be written in .js
files as well.
So what is the actual difference between these two extensions .js
and .jsx
?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…