score:0

Accepted answer

in react you can do it using the state management.

example:

  1. in constructor, create

    this.state={hide:true}

in table if you want to hide a table row,

write like this:

{
(this.state.hide==false)?null:<table.row>
        <table.cell>cell</table.cell>
        <table.cell>cell</table.cell>
        <table.cell>cell</table.cell>
      </table.row>
    </table.body>
}

it will not show that row. this is because the react rendering is state based.

if you want to hide then you have to set the state as hide=true i.e.

this.setstate({hide:true})

Related Query

More Query from same tag