Redux-React Programming Practices [closed] - reactjs

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I am trying to understand the best practices when writing and achieving the best abstraction. Should all functions be action creators when writing redux-react applications, or should functions where it is not necessary to edit the store go directly into components and be called from there?

Action creators are for managing state. They are a very specific type of function that generate actions that are processed by your reducer. There are a lot of other computations and things you can do in your app besides manage state, and for those things you should not use action creators. You don’t necessarily have to put the functions in your components. You can also put them in a helper folder, for example, and then import them.

Related

What is the most effective way of State Management in Enterprise level React Application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 months ago.
Improve this question
I am totally confused about how to manage the application level state in React.
I have an enterprise-level application frontend that has some data that is used across application.
Should I use Redux or react hooks or my own JavaScript code that manages the state?
If you are going to need to share the state across a lot of components then you could use either Redux or useContext hook (more Simpler and easy to understand than Redux).
If you have a lot of data (configurations etc) to be shared by multiple components on different hierarchy levels then I will recommend you to use redux-toolkit

What is the need of redux in react? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
When we have component to write all logic then why we use redux. As we can separate template and styling from component
In the simplest words, you need redux for very complex state management in a large project. When you work on a large production level project, there are several components and states to worry about, and passing components between states becomes a mess. You could use context but in many cases you may need to move state up by 1 or more components to be able to use it effectively. This kind of problem is what redux aims to solve, and you will not be able to appreciate unless you work on a large project where components depend on other component's states.

Which is the best option? Use an unupdated component in React or try to implement the library in react without the component? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I have found some components that are not updated with the last React version, however, those components work. But I was wondering if those components are not updated would be the best option or a good practice to try to implement the libraries in React without the npm packages?
Thanks.
I'm my experience, it'll depend upon the product you're working on. IE. you're working in a UI that is not likely changing and once it's done, it'll remain the same for some time (rare case), and it's not too complex. I'd go for the component even if it's not that updated.
If the benefits from constructing the component yourself (long term maintainability, extensibility, etc.) are important to your project and it won't take that much time, maybe it'll be the best option.

Is it better practice for a React Dapp to a call a Smart Contract using Drizzle or Web3? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
For my React Dapp to call my smart contracts running on the ethereum block chain, is it better practice to use the Drizzle framework or call Web3 directly?
I recommend using drizzle because it will abstract some complexity and make your code more readable. Also check out drizzle-react it provides some components and decorators that will be super useful.
However, be careful with this type of questions in SO, it might get downvoted, since it's kind of a subjective question and people might have different opinions about it. This community is more about solving coding problems.
Best of luck.

Description of reactjs reducer related terms [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Please give a brief description of middleware,thunk & redux-logger used in reactjs..
In reactjs, middleware is a piece of code that bridges two or more parts of an application. Thunk is also a piece of software that is primarily used to delay a calculation until its result is needed, or to insert operations at the beginning or end of the other subroutine. Redux-logger, as the name suggests, it is simply a logger. It is used to spit out information about the previous and current state of an application that uses redux.
I hope this was brief.
Please refer to this, this and this to learn about these technologies in depth.

Resources