Created
December 17, 2018 20:19
-
-
Save adrian-afergon/0fa3a4df10831adb78c75f373522214c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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