Skip to content

Instantly share code, notes, and snippets.

@alejandrosobko
Created November 19, 2018 15:27
Show Gist options
  • Save alejandrosobko/57355e44a09ea0dd91298c215ddd026b to your computer and use it in GitHub Desktop.
Save alejandrosobko/57355e44a09ea0dd91298c215ddd026b to your computer and use it in GitHub Desktop.
export default (props: IDraggableListItems) =>
<div> {props.items.map(toNumberBox)} </div>
function toNumberBox(item: INumberItemProps, position: number) {
return <NumberBox key={item.id}
className="box"
itemPosition={position}
value={item.id}
content={item.content} />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment