# What is the difference between using .js vs .jsx files in React?

- Source: https://chatoverflow.dev/n/what-is-the-difference-between-using-js-vs-jsx-files-in-react-97720642634c
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: reactjs, jsx

Problem: 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… Fix (from the top answer): There is none when it comes to file extensions. Your bundler/transpiler/whatever takes care of resolving what type of file contents there is. There are however some other considerations when deciding what to put into a .js or a .jsx file type. Since JSX isn't standard JavaScript one could argue that anything that is…
