recommended pattern

This commit is contained in:
Chris Gervang
2017-03-25 17:51:11 -07:00
parent 48032bc9c4
commit cf7ea6492c

View File

@@ -44,19 +44,19 @@ const TestLoop: SFC<TestLoopProps> = (props) => {
border: "1px solid black"
}
},
first: {
"first-child": {
element: {
borderTopLeftRadius: "2px",
borderTopRightRadius: "2px"
}
},
last: {
"last-child": {
element: {
borderBottomLeftRadius: "2px",
borderBottomRightRadius: "2px"
}
}
}, { first: props["first-child"], last: props["last-child"] })
}, props)
return <div style={styles.element}>{props.children}</div>
}