reactjs - React virtualized table custom rowRenderer state -


i trying create custom rows on table own state. unfortunately, rowrenderer property on table component must proptypes.func , not full react component have access lifecycle methods , state. there reason this, or there alternative method me able have stateful component each row?

see https://github.com/bvaughn/react-virtualized/blob/master/source/table/table.js#l167

i should mention understand these row components may unmounted when scroll off screen. ok that, long can have state when in viewport.

you can return class component (with lifecycle hooks) function prop rowrenderer. eg

function rowrenderer(props) {   return <rowcomponent {...props} /> } 

Comments

Popular posts from this blog

4x4 Matrix in Python -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -

python - PyInstaller UAC not working in onefile mode -