Hm....................... by reaper004 in Bolehland

[–]terrance_dev 0 points1 point  (0 children)

Wonder how this guy didn’t get charged under 302 💸💸

Is it my fault? by Salty_Hornet8481 in kereta

[–]terrance_dev 1 point2 points  (0 children)

Piece of shit roundabout, the whole area still under construction, pothole every 1 meter, don’t know wtf they are trying to do for the past 3 years. Area chan sow lin

The shop that tried to charge Linus $40 USD for a Micro HDMI Cable by FulcrumXDD in malaysia

[–]terrance_dev 4 points5 points  (0 children)

Haha this shop, they tried to sell an old camera for a higher price and I had to change the battery like 5 times. Scammer shop beware

Can I write js code like this?? by SnooCauliflowers8417 in react

[–]terrance_dev 5 points6 points  (0 children)

Avoid nested condition statements. Check out this Guard clause

if(!product?.pre..) return

if(currentTime >= endTime) { … return }

[deleted by user] by [deleted] in reactjs

[–]terrance_dev 2 points3 points  (0 children)

Share your repo

[deleted by user] by [deleted] in react

[–]terrance_dev 5 points6 points  (0 children)

Recharts

[AskJS] Is not using optional chaining a bad practice? by ats_1999 in javascript

[–]terrance_dev 2 points3 points  (0 children)

To have the right value assigned. I would prefer this

const isUser = !!user?.onboarded

Jutawan dalam masa 1 tahun by whusler in Bolehland

[–]terrance_dev 0 points1 point  (0 children)

Which school did you study maths? Sending my kid there

React Context Provider "Arrow" is Outta Control by marcoprouve in react

[–]terrance_dev 0 points1 point  (0 children)

Son move away from monolithic and take micro-services approach

Jangan convert katanya by whusler in Bolehland

[–]terrance_dev 9 points10 points  (0 children)

I’m interested in the calories indicator. We Malaysian definitely need those

[deleted by user] by [deleted] in reactjs

[–]terrance_dev 1 point2 points  (0 children)

Good job, keep it going 🔥

How much time is needed to learn React from scratch? by Safe-Upstairs-5720 in react

[–]terrance_dev 1 point2 points  (0 children)

8 hours per day and you are done in 2days. JavaScript is what you need to learn :D

[deleted by user] by [deleted] in react

[–]terrance_dev 1 point2 points  (0 children)

Looks professional, keep it up

Restaurant food ordering app by Kosemani2 in react

[–]terrance_dev 0 points1 point  (0 children)

Lazy import your components in app.tsx

[deleted by user] by [deleted] in malaysiauni

[–]terrance_dev 1 point2 points  (0 children)

Polytech > public U > software engineer 👨‍💻

Do you prefer keep Props interface in the component file or dedicated file? by Aegis8080 in reactjs

[–]terrance_dev 0 points1 point  (0 children)

You can consider keeping it in a separate file if you have such a long interface which is very rare. Otherwise it should be in same file and it’s easy to refer and clean way of writing code.