Skip to content

Conversation

ezakto
Copy link

@ezakto ezakto commented Jun 13, 2016

Copy link

@MeKarina MeKarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plain javascript would be preferable i guess..

export default function HelloMessage(props) {
  return <div>Hello {props.name}</div>;
}

@ezakto
Copy link
Author

ezakto commented Sep 28, 2016

@MeKarina what do you mean? Arrow functions are plain javascript. If your env supports export or classes, it also supports arrow functions, right?

@iDVB
Copy link

iDVB commented Oct 12, 2016

+1
Be nice to know what people are doing now in the absence of this. (other then manual typing)
Another snippet lib?

@MeKarina
Copy link

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>

@grundmanise
Copy link

grundmanise commented Feb 3, 2017

@MeKarina how about this one?

import React from 'react'

export default ({prop}) => (
   <div><div />
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants