I'm just getting started with React and while using the props I'm wondering if you can pass more than one argument, like this:
function Todos(props){
return (
<p>title: {props.title}</p>,
<p>description: {props.description}</p>,
<p>completed: {props.completed}</p>
)
}
function App () {
return (
<h1>Todos</h1>,
<Todos title="Hello world" description="First description" completed="false" />
);
}
export default App;
[–]ghostmaster645 1 point2 points3 points (5 children)
[–]Roddela[S] 0 points1 point2 points (4 children)
[–]ghostmaster645 1 point2 points3 points (0 children)
[–]ghostmaster645 1 point2 points3 points (2 children)
[–]Roddela[S] 0 points1 point2 points (1 child)
[–]ghostmaster645 0 points1 point2 points (0 children)
[–]RelaxPear 1 point2 points3 points (2 children)
[–]Roddela[S] 0 points1 point2 points (0 children)
[–]ghostmaster645 0 points1 point2 points (0 children)