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.

FirstChild(...): No `render` method found on the returned component instance

See original GitHub issue

FirstChild(…): No render method found on the returned component instance: you may have forgotten to define render, returned null/false from a stateless component, or tried to render an element whose type is a function that isn’t a React component.

I gave it a try, Issue is in the \react-images\lib\Fade.js 33 line to return empty.Want to be able to repair

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
PeteLuocommented, Jun 27, 2016

@ArturAmbartsumov in \node_modules\react-images\lib\Portal.js 33 line Replace return kids[0] || null; with return kids[0] || _react.createElement(‘div’,null); please take a chance.

0reactions
jossmaccommented, Aug 15, 2016

Fixed by 591761f

Read more comments on GitHub >

github_iconTop Results From Across the Web

React ES6: you may have forgotten to define `render`
No `render` method found on the returned component instance: you may have forgotten to define `render`. Uncaught TypeError: inst.render is not a function....
Read more >
[Solved]-React ES6: you may have forgotten to define `render`
Coding example for the question React ES6: you may have forgotten to define ... No `render` method found on the returned component instance:...
Read more >
API | Testing Library
Tip: To get the root element of your rendered element, use container. firstChild . NOTE: When that root element is a React Fragment,...
Read more >
Node.firstChild - Web APIs - MDN Web Docs
The read-only firstChild property of the Node interface returns the node's first child in the tree, or null if the node has no...
Read more >
Implementation Notes - React
It is located at src/renderers/shared/stack/reconciler. ... Either way, the reconciler will learn the element App “rendered to”. This process is recursive.
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