I've been writing react for a few months now and I just realized that some of my files have a .js
extension while others have .jsx
extension. When I write jsx
in the .js
files, everything still works. Does it matter what the extension is?
by the way (for context), I'm using webpack to generate a bundle.js file. Does that affect anything?