I need to change render function and run some sub render function when a specific state given,
For example:
render() { return (
render() { return ( (() => { if (this.state == 'news') { return data } else return })() ) }
https://react-cn.github.io/react/tips/if-else-in-JSX.html