Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes
Accepted

Create an address self-complete bar

A few things you can improve: Use const instead var Don't use any as type Move ...
m.rufca's user avatar
  • 208
4 votes

Trivia game in react

With React, it's important to identify and separate what requires and what doesn't require state. In this scenario, the presentation of the questions and answers is ...
Kaushik Shankar's user avatar
2 votes

Idomatic way to ignore `finally` block after cancelling network request

If you have some problems with the other answers, you can immediately stop loading if it is not cancelling: ...
Фаррух Фатхуллаев's user avatar
2 votes

Minesweeper in React -- design for state management/data flow

The code seems well formatted and the variables are generally well chosen. There are too many literals in there to my liking and obviously these overly large constructs are not very legible for those ...
Maarten Bodewes's user avatar
2 votes

A tutorial project for learning React - Chat app

Not bad for an assignment. Just going top to bottom: App.tsx You reference contacts before defining it. This works in JS because the declaration is hoisted, and the ...
user3932000's user avatar
2 votes

Trivia game in react

Some suggestions after reviewing your code: Use Enums for Choices: Replace hardcoded "A", "B", "C", "D" with an enum for readability. DRY (Don't Repeat ...
Jimmy Kurian's user avatar
1 vote
Accepted

How to manage array of states effectively?

You can refactor that component into a main component, and each list will have its own component. Then you can reuse the list component multiple times: ...
Ooker's user avatar
  • 201
1 vote

Spring Boot Account API with React Frontend and Identicon Integration

Overall Design and Architecture H2-Database might give bad performance, you might concider using a more performance efficient solution for heavy workloads. Postgres or MySQL might be better in ...
Grim's user avatar
  • 612
1 vote

access arrow data

no JSON const rowJson = row.toJSON(); faster way of reading arrow data? That .toJSON() call looks like it's more ...
J_H's user avatar
  • 28.1k
1 vote
Accepted

Further memoize context value in react?

So the way React contexts work can be basically boiled down to: if that context re-renders any component which useContext's that context will re-render. So in this instance, I think that additional ...
matt.roelle's user avatar
1 vote

Tracking people's check-in and check-out at an event

Yes, it is complex. And the peopleInEvent: Math.max(0, ...) calculation during decrementing is a little concerning, suggesting that caller might present the same ...
J_H's user avatar
  • 28.1k

Only top scored, non community-wiki answers of a minimum length are eligible