Carousel renders before children
See original GitHub issue<OwlCarousel items={4}>
{this.props.articles.map(
(article, key) => (
<div className="item" key={key}>
...
</div>
)
)}
</OwlCarousel>
When mapping carousel items from Props, carousel renders before items. And it’s rendered empty. Is there any way to overcome this problem?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
ReactJS : Child wont re-rendered when the parents state ...
I have been trying to re-render a contact list inside a Carousel by changing the state object in the parent class. The first...
Read more >pure-react-carousel - npm
Lets you assemble the carousel components in the DOM in any order you desire so long as they are all children of a...
Read more >The mystery of React Element, children, parents and re-renders
Looking into what is React Element, exploring various children vs parents relationship in React, and how they affect re-renders.
Read more >How to Build a Simple Carousel in React | by Aakash Jha
A carousel is nothing more than several items being rendered in a parent container block — carousel-container , with the child — carousel-item...
Read more >Making A Carousel - React Reveal
To make a carousel you'll need to import a makeCarousel function first. ... const Carousel = makeCarousel(CarouselUI); render ( <Carousel defaultWait={1000} ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try to add key to the OwlCarousel
I was facing same prblm its fixed by adding key to OwlCarousal component. Bt what actually happen and why its solved by adding key to component