Questions tagged [reactjs]
The reactjs tag has no summary.
36 questions with no upvoted or accepted answers
5
votes
1
answer
466
views
ReactJS with Elasticsearch app architecture
I want some advice regarding my architecture and hosting options.
I'm attempting to build an e-commerce site for e-books. It will use NestJS for the backend and ReactJS+Typescript for the frontend.
...
3
votes
0
answers
256
views
Architecture and Security in a Web/Native app while generating PDFs
I am trying to make a system where a user can view/download his statements (say salary slips). The user will have ability to download PDF versions of these statements and can also save them to Google ...
3
votes
0
answers
987
views
Fetch data in parent vs fetching data in child
I know that I want to develop a React App like so:
<PhotoPage>
<FeedFilter/>
<PhotoFeed/>
</PhotoPage>
Without using Redux, I know that I need to fetch a dataset of photos ...
3
votes
0
answers
445
views
React DOM manipulation vs CSS for responsive breakpoints?
Specifically for ReactJS and responsive frameworks that show/hide elements based on width like Bootstrap.
Because ReactJS has a virtual DOM I am presuming doing the DOM manipulation is faster and in ...
3
votes
0
answers
406
views
Hot swapping files and metaprogramming with front-end JavaScript
I was inspired by a video on hotswapping JS files with React + Webpack for the web. I started trying it out with React + Backbone + RequireJS.
Seems to work, as long as I stick to the stateless parts ...
2
votes
0
answers
264
views
React Hooks: using state in useEffect without depending on it
I have run into a situation in React where I want to run a function F in a useEffect hook whenever a value V1 from the store changes. F uses another value from the store V2. I only want to run F when ...
2
votes
0
answers
160
views
Dependency injection of UI components via React context
In React, it's common for libraries, and app-internal utilities, to used context-based dependency injection. Some examples:
function MyComponent() {
const client = useApolloClient(); // Apollo
...
2
votes
0
answers
2k
views
Updating nested state with React Hooks and Typescript - performance vs clarity
I have some deeply nested react components. Let's limit them to 3 levels of nesting and call them Parent, Children and Grandchildren. The state for the entire app is stored in a single object in the ...
2
votes
0
answers
121
views
Where to store the state of a complex form in React?
Let us consider a complex form of registering a driver and owner.
The driver will have all these fields:
driver = {
firstName: "xyz",
lastName: "abc",
phone: "1234",
email: "[email protected],
licence: "...
2
votes
0
answers
390
views
Implement FSM explicitly in re-frame/reagent/react?
I'm in the process of making a simple game using re-frame (and thus react and reagent), but I'm stuck at one point.
In
https://github.com/Day8/re-frame#control-via-fsm
they claim
Not every app ...
1
vote
0
answers
96
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 ...
1
vote
0
answers
114
views
Reactjs + nodejs external authentication flow
I am developing a RESTful application with nodejs in the backend with express.js as middleware. I am also developing a client in Reactjs.
I want to use an external authentication service (LDAP/AD/ADFS)...
1
vote
0
answers
36
views
Best way to allow other components to change table's focused row?
I have displayProjectTable that gets state from reducer projectData and populates itself.
Currently displayProjectTable has a local state that stores focusedRowID. My problem is that I want other ...
1
vote
0
answers
144
views
Where to place code which synchronizes state of Redux with localStorage?
In our project, I was need to sync a piece of information between localStorage and the Redux state. Actually I subscribed to changes in a localStorage and in Redux, and if change happens in ...
1
vote
0
answers
374
views
Is it better to have a default avatar library on client or server side?
I have a webapp using ReactJS as the frontend and Rails as the backend service.
I have an account manager, where a user can choose multiple avatars from a default library. This library contains ...