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 →

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