We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import React from 'react'; import TouchCarousel from 'react-touch-carousel' class App extends React.Component { carouselComponent() { return ( <div style={{backgroundColor: "yellow", height:400, width: "90%"}}> </div> ) } renderCard(index, modIndex) { return ( <div style= {{color: "red"}}> {index} <div> <div className='carousel-title'>{'title'}</div> <div className='carousel-text'>{'text'}</div> </div> </div> ) } render() { return ( <TouchCarousel component={this.carouselComponent.bind(this)} cardCount={3} cardSize={375} renderCard={this.renderCard.bind(this)} loop autoplay={3000} /> ) } } export default App
The text was updated successfully, but these errors were encountered:
I guess it should be something like
carouselComponent(props) { return ( <div style={{backgroundColor: "yellow", height:400, width: "90%"}}> {props.children} </div> ) }
Sorry, something went wrong.
No branches or pull requests
I can't see renderCard's component
The text was updated successfully, but these errors were encountered: