Hello guys can anyone spot the error I made? I'm a beginner in reactjs. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

24th Aug 2020, 8:14 AM
Venkat Ram
Venkat Ram - avatar
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
24th Aug 2020, 8:44 AM
Kevin ★
+ 3
Thanks sir!!😃 I do a lot of silly mistakes over looked these small errors .
24th Aug 2020, 11:58 AM
Venkat Ram
Venkat Ram - avatar