react-components: Cannot read property 'displayName' of undefined

i am getting undefined error on itemComponent. the code from view.jsx

`const componentName = itemComponent.type.displayName || itemComponent.type.name;`

if you can explain MyMasonryItem class it would be really helpful right now

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

@matthiaskaemi there is an example in the file Link

@matthiaskaemi you can use whatever properties you like so long as they fit the shape of the props expected by MyMasonryItem or whatever you prefer to call it ๐Ÿ˜ƒ

Side note: this issue has run itโ€™s course. Folks please feel free to open a separate issue

onInfiniteLoad is just a function that you can use to react to the scrolling state of the page.

You can disable it by removing the code that handles the checking or firing. I believe you can also specify props.threshold = -99999 which should invalidate the conditionals.