mobx-react-form-devtools icon indicating copy to clipboard operation
mobx-react-form-devtools copied to clipboard

Warning: Expected `onClick` listener to be a function, instead got a value of `boolean` type.

Open foxhound87 opened this issue 8 years ago • 5 comments

Related to https://github.com/alexkuz/react-json-tree/issues/94

foxhound87 avatar Oct 11 '17 10:10 foxhound87

index.js:2178 Warning: Expected onChange listener to be a function, instead got a value of object type. in input (at TodoForm.js:6) in form (at TodoForm.js:5) in TodoForm (at src/index.js:52) in section (at src/index.js:51) in Todolist (at src/index.js:67)

Rohitashsharma avatar Sep 27 '18 11:09 Rohitashsharma

i am beginner in Reactjs plz help me

Rohitashsharma avatar Sep 27 '18 11:09 Rohitashsharma

Hi i understand that you didn't add the curly brackets please use this method in TodoForm.js const TodoForm=({searchfield, searchChange}) => {

amirshah093 avatar Oct 12 '18 12:10 amirshah093

Some where u have putted function in onClick like onClick={ someFtn() }. This is wrong the parentheses directly calls the function instead of waiting for the click i.e. onClick, ok. So, u have to remove the parentheses. This will solve the problem. Good Luck! :^)

abdulmuqsit10101 avatar Feb 22 '20 09:02 abdulmuqsit10101

setPrint is not a function

AravinthRS avatar Feb 21 '22 14:02 AravinthRS