DEV Community

Sundar Joseph
Sundar Joseph

Posted on

Difference Between a .js and .jsx File in React

Top comments (1)

Collapse
 
pengeszikra profile image
Peter Vivo

.js is a simple javascript file, nothing special can be run anywhere even without compile.
.jsx is a syntax sugar for the view object which will be later React use to render DOM.

JSX format not dedicated only for React. For example solid.js, quick also use that.

Technically any one can use write a JSX based solution. There you can found my solution: dev.to/pengeszikra/javascript-grea...

Some comments may only be visible to logged-in visitors. Sign in to view all comments.