Hacker News new | past | comments | ask | show | jobs | submit login

I do something similar in React too:

const foo = () => console.log && <Something />

That stops the body rendering, and you can use '||' if you want the body and the log.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: