0
Hello guys can anyone spot the error I made? I'm a beginner in reactjs.
My code tries to take an input , add all the inputs entered and displays the sum. I tried it using functional component it worked and I want to do it using class component. Plz help me. Just pasted the code from my pc on js writer. Don't know where to paste the react code. https://code.sololearn.com/W3orOBAO87qw/?ref=app
2 Answers
+ 6
Object literal syntax:
{
key = value //this is wrong
}
{
key : value //that's the way
}
Run it here:
https://code.sololearn.com/WHc2RxGg79KF/?ref=app
+ 3
Thanks sir!!đ I do a lot of silly mistakes over looked these small errors .