educative.io

Passing data as a function paramter

is it okay to call the component like a normal function ?
instead of … new List(), if so… i can pass a variable as a function parameter like that:
new List(list)
whats the difference between that and the props?

There are two types of components in React. One is class components, and the other one is functional components. We use props to pass the arguments to react components. Our app component can only return JSX. And in the end, our goal is to render our newly created component in the app component, and we need props to pass any arguments.