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)
Hey Valentin,
Thanks a lot i got the gist of it. Do you any suggestion for my second question?
Sure, you can connect redux to your functional component. Functional components are just another way to create components. ;)
Thanks Valentin As a beginner it helped me. Cheers ;)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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)
Hey Valentin,
Thanks a lot i got the gist of it. Do you any suggestion for my second question?
Sure, you can connect redux to your functional component.
Functional components are just another way to create components. ;)
Thanks Valentin As a beginner it helped me. Cheers ;)