score:0

   render : function(){
            <ComponentB sampleData={this.state.data} />
        }

score:0

render : function(){ 
    if(this.state.data){
        return ( <ComponentB data={this.state.data} /> );
    }
    else{
        return ( <ComponentB />);
    }
 }

Related Query

More Query from same tag