Skip to main content

Questions tagged [reactjs]

-4 votes
0 answers
51 views

Roll Based Web App [closed]

I'm gonna implement RBAC (roll-based-access-control) and I'm not sure how to do this. But I'm sure I don't need to make several pages (namespaces) for each role, such as admin/index.jsx, manager/index....
0x0's user avatar
  • 1
0 votes
1 answer
62 views

Singe Page Application for the Web with (dynamic) tabbed interface - is there need for the navigation and url update for ERP application?

I am developing React SPA ERP application (so - no SEO requirement) with dynamic tabbed interface - where each form (e.g. invoice id=1, invoice id=2, invoice new, list of invoices, accounting report) ...
TomR's user avatar
  • 1,009
1 vote
0 answers
81 views

Deciding between two design alternatives for displaying series of screens in mobile applications?

I am developing a mobile application, and one of the features is a "story" that is essentially a series of screens. The screens can be of three main templates: A "video" template ...
AbduAdd's user avatar
  • 19
0 votes
0 answers
83 views

Edge Case For Cookie Based Token Management

I have a React frontend and a Nodejs backend that uses authentication via an OIDC service provider. After a user goes through the SSO authentication flow I store the token (containing a refresh token ...
John's user avatar
  • 9
1 vote
3 answers
238 views

Does ReactJS Compound Pattern violate the DRY principle?

Let's say we have this component: const Card = ({ title, description, price, tag, category }) => { return ( <div> {title && <h5>{title}</h5>} {...
Oki's user avatar
  • 117
-1 votes
1 answer
404 views

ReactJS hook vs utility function

Should we use utility functions in react or should everything be components and hooks? I had this scenario: Utility function for formatting money. const formatMoney = (value) => value == null ? '' :...
Oki's user avatar
  • 117
0 votes
0 answers
91 views

Best Practices for Managing State in React Applications

I'm currently developing a web application using React and I'm looking for the best practices for managing state effectively. I've come across several methods such as using the Context API, Redux, and ...
Tarun Rathore's user avatar
1 vote
1 answer
621 views

Deciding between logic on the front-end or back-end

Before I begin, I want to say I am very new to this and I am a junior but also solo developer with no seniors to ask for guidance. Please feel free to explain to me that I am not approaching it ...
Zayd_MP's user avatar
  • 13
0 votes
1 answer
312 views

Is it a good idea to serve a Single Page Application as a static site?

I've built a small single-page web application in React and seen that it's possible to serve the app as a static site on something like S3. Previously, I considered using Nginx, but as this is lower ...
Connor's user avatar
  • 159
0 votes
1 answer
220 views

Monorepo dilemma: Where do you store your common business logics?

In my current monorepo structure for frontend, this is how it looks: apps\ jira\ confljuence\ packages ui utils\src (contains common utils like useDebounce.ts, isEmptyObject.ts, etc.) From what i ...
nishant_boro's user avatar
1 vote
1 answer
753 views

How could I apply the strategy pattern to a react component? [closed]

For the following component, how would I extract the unit logic to allow for composition? In my actual app I am trying to reduce the amount of logic encoded in the component and I have decided that ...
Tyler Kasper's user avatar
0 votes
1 answer
160 views

How to actually use global state in React?

In my company, all of the projects use at least some kind of global state library like Redux and MobX. However, the actual usage is limited to storing fetched data, and it lacks any caching logic or ...
Erick Christian's user avatar
-1 votes
1 answer
165 views

Best approach to communicate C++/Python and Front-End

I work with Computer Vision applications, mainly in Python and C++. Recently, I get involved with a customer that wants to create a UI based on React JS to visualize the results of our software in ...
mbenencase's user avatar
1 vote
3 answers
2k views

Best strategy to push client-side updates to server?

I'm just starting to build a web app using React.js, Next.js, Prisma, & PostgreSQL. In this web app, users can create "projects", which are represented by 10-15 rows in the database. ...
BurstWizard's user avatar
-2 votes
1 answer
239 views

Is it OK to stick with object graph in React State and should I make helpers for handling it?

I am trying to build ERP application using React frontend and I have not found decisive answer whether to use object graphs in React state? E.g. I would like to build Invoice view and I have the ...
TomR's user avatar
  • 1,009

15 30 50 per page
1
2 3 4 5
9