DEV Community

Discussion on: .JSX Extension

Collapse
 
valentindududu profile image
Valentin D.

You can always use .js extension if you want, but it's generally better to use .jsx when your file contains JSX so it's simpler for you to understand what the file will actually contain.

.js --> only js
.jsx --> contains JSX (reactjs.org/docs/introducing-jsx.html)

Collapse
 
yashyashwanth profile image
yashwanth_t

Hey Valentin,

Thanks a lot i got the gist of it. Do you any suggestion for my second question?

Collapse
 
valentindududu profile image
Valentin D. • Edited

Sure, you can connect redux to your functional component.
Functional components are just another way to create components. ;)

Thread Thread
 
yashyashwanth profile image
yashwanth_t

Thanks Valentin As a beginner it helped me. Cheers ;)