mshumayl / ai-daleel

AI Daleel source code.
https://ai-daleel.vercel.app
1 stars 0 forks source link

Convert one-result ternary operators into `&&` #21

Open mshumayl opened 1 year ago

mshumayl commented 1 year ago

Instead of doing this:

(check) ? (<div>Render content</div>) : (<></>)

Do this:

check && (<div>Render content</div>)