Skip to content

Improve Examples Page #35

Open
Open
@jordaaash

Description

@jordaaash

On http://devblog.orgsync.com/react-list/:

{
    "length": 10000,
    "itemRenderer": "function renderVariableHeightItem(index, key) {\n return _React.createElement(\n 'div',\n {\n key: key,\n className: 'item' + (index % 2 ? '' : ' even'),\n style: { lineHeight: '' + getHeight(index) + 'px' }\n },\n index\n );\n }"
}

Is passing the itemRenderer prop as a string intentional? The documentation on Github seems to suggest it's just a function.

If it helps, I've been using an older version of the library and I'm finally upgrading, so this is a bit confusing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions