Open ezakto opened 8 years ago
@MeKarina what do you mean? Arrow functions are plain javascript. If your env supports export or classes, it also supports arrow functions, right?
+1 Be nice to know what people are doing now in the absence of this. (other then manual typing) Another snippet lib?
both r correct n im not sure which better...
what i propose is airbnb style... and look like gain a lot traction...
https://github.com/airbnb/javascript
anyway u dont need cons
... this also correct...
export default (props) => <div>Hello {props.name}</div>
@MeKarina how about this one?
import React from 'react'
export default ({prop}) => (
<div><div />
)
Pretty handy: https://facebook.github.io/react/docs/reusable-components.html#stateless-functions