top | item 12718946

(no title)

alistairjcbrown | 9 years ago

You'd have to spread in the object, right?

<Component {...{animal}} />

discuss

order

sorahn|9 years ago

We already do this when we have a lot of props to pass down. "A lot" usually means enough to take the line past 100 columns.

const componentProps = {}; <Component {...componentProps} />

skosch|9 years ago

Yes, absolutely. Ignore what I wrote.