Can props pass data between functional component?

I was going through this lesson today, I have a question regarding props in React. From my understanding, props enable us to pass data between components in Class Component.

But I wonder if we used Functional Component, can props pass data between Functional Component too? The lesson didn’t clearly explain it.

Link to the lesson →
https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-react-part-ii/modules/fecp-function-components-and-hooks/lessons/stateless-functional-components/exercises/stateless-functional-component-props

1 Like

Yes, props can be passed in functional components as a parameter. It is more streamlined, as you don’t create a constructor method or use super or this in functional components.

There’s a brief comparison of props use in class & functional components in this cheatsheet .

Thank you for replying, that solved my problem :smile:.

1 Like