I was learning React and wanted to use setState without putting it inside function and call it via bind() method like this:
<button onClick={this.setState.bind(this, {carName:'Honda'})}></button>
but I get an error.
react-dom.development.js:13825 Uncaught Error: Invalid argument passed as callback. Expected a function. Instead received: [object Object]