Consider <MenuComponent /> is the reusable component. Which code perform better in this scenario.
Option 1
render() {
return this.state.shouldHidden ? null : <MenuComponent />
}
Option 2
render() {
return <MenuComponent hidden={this.state.shouldHidden}/>
}