When I build a component in a react application, I normally use the.js file extension (even if I write in jsx), but I've seen some use the.jsx file extension. Is it better to use .jsx file extensions for components instead of .js? And what's the benefit of doing that?
I use .js file extension and it works without any problem