SetState

Oluşturulan veya var olan state'lerin güncelleme ve aksiyon oluşturma.

  // setState React.js için global bir metot'dur 

     ....
    guncelle(){
        this.setState({card_baslik: 'Gule Gule'});
    }
    ....
    <Button onClick={this.guncelle.bind(this)}>Tıkla Bana</Button>

(imaj) 16-18.satır ve 31.satır

Last updated

Was this helpful?