I would like to calculate the pf of salary using the basic salary like this:
state = {
fgsSalary: 0,
basicSalary: 0,
//pf: this.state.basicSalary * 0.12
//pf: this.basicSalary * 0.12
//pf: basicSalary * 0.12
}
I tried all three ways but nothing works. If there's any way please tell.