Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicoburns
on Sept 9, 2022
|
parent
|
context
|
favorite
| on:
The self-fulfilling prophecy of React
Mine doesn’t work very well in JSX blocks. Partly because I don’t think there is any way to insert a comment inside a JSX tag (to comment out an attribute).
ncphillips
on Sept 9, 2022
[–]
It is possible:
<Button
// id=“commented-out” onClick={doSomething}
/>
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: