Warning: Expected `onClick` listener to be a function, instead got a value of `boolean` type.
Related to https://github.com/alexkuz/react-json-tree/issues/94
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)
i am beginner in Reactjs plz help me
Hi i understand that you didn't add the curly brackets please use this method in TodoForm.js const TodoForm=({searchfield, searchChange}) => {
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! :^)
setPrint is not a function