I need to do setState after the function fully executed.Can anyone please help
interface CompProps { change: ( template: ElementTemplate, num: numbe