amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

how-to-stop-a-react-component-from-rendering/ #82

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

How to stop a React component from rendering — Amit Merchant — A blog on PHP, JavaScript, and more

In React, when you want don’t want a component to render based on some condition, you might reach for short-circuiting to achieve the same.

https://www.amitmerchant.com/how-to-stop-a-react-component-from-rendering/

Hainesy commented 1 year ago

No, don't do this.

Kepro commented 1 year ago

NEVER do this and never delete comments under your articles cuz this is garbage article

amitmerchant1990 commented 1 year ago

@Kepro Okay. I won't. Keep bashing. 👍