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
- Touch ups for #4 — committed to coleturner/react-components by coleturner 6 years ago
- Replace more instances of wrong variable name #4 — committed to coleturner/react-components by coleturner 6 years ago
@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
MyMasonryItemor whatever you prefer to call it ๐Side note: this issue has run itโs course. Folks please feel free to open a separate issue
onInfiniteLoadis 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 = -99999which should invalidate the conditionals.