question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't render children in React 16.0

See original GitHub issue

I have a component:

<Lazyload once height={200}><Child/></Lazyload>

This works in React 15.6.1, but not in React 16.0. The Child component’s ComponentWillMount lifecycle method isn’t being called. Neither is the render method.

I tried making once=false, still doesn’t work.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:22

github_iconTop GitHub Comments

7reactions
jasonslyviacommented, Sep 27, 2017

I will look into this.

3reactions
jasonslyviacommented, Oct 18, 2017

If everybody is okay, then I’m going to merge #126 and publish a new minor version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJS is not rendering children
I don't understand why it is not rendering. In the bedg I contd see <banner> . tag inside of hero. How can I...
Read more >
React v16.0 – React Blog
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Read more >
Render Children in React Using Fragment or Array ...
It used to be that React components could only return a single element. If you have ever tried to return more than one...
Read more >
React 16 client side render doesn't update DOM's style that ...
However the content inside div ("browser" or "server") got updated. Does this mean that only the "children" prop will be updated? Or we...
Read more >
React Children And Iteration Methods
The most obvious and common prop that developers work with within React is the children prop. In the majority of cases, there is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found