Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

this.setstate is not a function in react native

constructor(props) {
    super(props)
    this.onClick = this.onClick.bind(this)
}

 onClick () {
     this.setState({...})
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #react #native
ADD COMMENT
Topic
Name
6+1 =