getData(value) { this.setState({ data:value}) }
We can update state variable inside function like this way. But how to update context