I need to change render function and run some sub render function when a specific state given,
For example:
render() { return (
I do like this and its working fine.
constructor() { super(); this.state ={ status:true } } render() { return( { this.state.status === true ? this.hideView()}> Ok Fine :) : Ok Fine. } ); } hideView(){ this.setState({ home:!this.state.status }); }