Better HN
topnewbestaskshowjobs
Log inSign up

syz

4 karma · joined Feb 4, 2016 (10y ago) · 4 submissions

Submissions

comment 10y ago · link · parent

Author here. I welcome any feedback or questions!

2.

Show HN: Cairn – A tiny library for improved styling in React Native(github.com ↗)

6 points · by syz · 10y ago · 1 comment

comment 10y ago · link · parent

Ah, of course. Thank you for the clarification.

comment 10y ago · link · parent

With the ES6 class syntax, is it possible to avoid the function.bind/anonymous function issue (and subsequent need for the whole IntermediateBinder thing) by redefining methods that will be passed into a subcomponent in the constructor to their bound equivalent? That is, in the constructor: `this.foo = this.foo.bind(this)` and in render: `<SubComponent foo={this.foo} />`?