Fix example setState
This commit is contained in:
parent
95ba5f364b
commit
5a2ebf8df7
@ -59,7 +59,7 @@ export default class App extends Component {
|
||||
try {
|
||||
const hash = await downloadUpdate(info, {
|
||||
onDownloadProgress: ({received, total}) => {
|
||||
setState({
|
||||
this.setState({
|
||||
received,
|
||||
total,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user