top | item 12718946 (no title) alistairjcbrown | 9 years ago You'd have to spread in the object, right?<Component {...{animal}} /> discuss order hn newest hex13|9 years ago I know, but it's too verbose for me. BTW there is a discussion about this: https://github.com/facebook/jsx/issues/23 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.
hex13|9 years ago I know, but it's too verbose for me. BTW there is a discussion about this: https://github.com/facebook/jsx/issues/23
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} />
hex13|9 years ago
sorahn|9 years ago
const componentProps = {}; <Component {...componentProps} />
skosch|9 years ago