jkettmann/relay-authentication

Arrow function should not return assignment no-return-assign

Closed this issue · 1 comments

  <div ref={ref => (this.container = ref)} style={styles.root}>

relay-authentication/client/components/post/PostList.js
54:17 error Arrow function should not return assignment no-return-assign

I used this fix
<div ref={(arg) => { this.container = arg }} style={styles.root}>

@davidhibbard1 Your fix was correct, but I rather used a class method. Makes it a bit cleaner I think