Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wingspan
on Aug 31, 2014
|
parent
|
context
|
favorite
| on:
A React.js case study
Not a bad idea. We would typically use _onClick for any component handler methods, so the _ would distinguish it. We have an internal transform that mangles anything in a module starting with _ so that it cannot be accessed outside.
atombender
on Aug 31, 2014
[–]
I also prefix with _, if only to indicate what's private and what's API. Mind sharing your transform?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: