loading...

re: Writing (clean) React code VIEW POST

FULL DISCUSSION
 

If the prop is the same name as the variable, please, do this:

const data = []
return <Component {... { data } } />
 

Hi,

What benefits will give us by wrapping data array inside the object literal?

code of conduct - report abuse