TypeError: this.props.onIncrement is not a function

I keep getting this error. I tried to figure it out, but I stuck( Please help!

1 Like



Hi,
The most ugly and unpleasant errors that happens in codes are syntactical errors, and sometimes it’s really hard to find them :smiley:
Look at line 46 of the App.js component, you misspelled β€œonincrement” instead of β€œonIncrement”

1 Like

Thank you. I really appreciate your help)

hi daiana,

i’m facing the same error and there are no spelling errors do you mind checking my code and fixing it please!

hi A100D-JS,

i’m facing the same error and there are no spelling errors do you mind checking my code and fixing it please!

I am also getting the same error, Have you found the solution?

Hey its Harvel, perhaps you didn’t call it,
Call by adding the parentheses and adding the necessary arguments if there are any,