|
|
|
|
|
by Androider
3296 days ago
|
|
Nowadays you can just stick a class property anywhere in your React component: handleSomething = (params) => {
...
};
and the use it in your render function like this without any binding: <Foo onSomething={this.handleSomething}/>
|
|