Closed Q8hma closed 5 years ago
// always use a variable if you want to record something
// storage is not to replace variables
count = 0;
addNewRow = () => {
storage.save({ key: 'rowCount', data: 0 });
this.count = 0;
this.setState({ statusdata: 'new' });
}
updateRow = () => {
this.count += 1;
storage.save({ key: 'rowCount', data: this.count });
this.setState({ statusdata: 'update' });
}
thanks bro , you save me with this plugin
Hello i want to used this plugin but i have one issue
i want to increase count of items i add like first time it by default it save count 1 after i click add it make it 2 then 3 and like that
this my code but it not work
any help ??