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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -