Skip to content

Instantly share code, notes, and snippets.

@adrian-afergon
Created December 17, 2018 20:19
Show Gist options
  • Save adrian-afergon/0fa3a4df10831adb78c75f373522214c to your computer and use it in GitHub Desktop.
Save adrian-afergon/0fa3a4df10831adb78c75f373522214c to your computer and use it in GitHub Desktop.
interface CarrouselProps {
children: ReactNode[]
}
class Carrousel extends React.PureComponent<CarrouselProps> {
public render () {
return (
<div>
{this.props.children.map(child => <div>{child}</div>)}
</div>);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment