question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup redux for the react client

See original GitHub issue

The code is becoming a little off hand with setState currently. Pulling in a state management lib like Redux or Freactal would be fanstastic for the code base.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nshntaroracommented, Aug 6, 2017

Awesome @spaceraccoon 😃 Once you have the state map ready, I’d say, why don’t you go for the initial set up too. Just install and put everything in the right place. You have worked with it, your setup could handle issues and solve for mistakes redux beginners like me would make. Then, when we have the initial setup ready, we divide the state tree among ourselves and start implementing.

What do you think?

0reactions
krishnagopinathcommented, Nov 14, 2017

@nshntarora as you work on redux, I would suggest not storing editorState in the state store.This is ideally local state and that will get destroyed quick quickly. Another reason is that the editor area could be independent of redux, so in the future (I know, YAGNI), if we need to pull it out as a separate dependency via lerna/yarn workspaces or something, it’d be easy to achieve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with React Redux
The recommended way to start new apps with React and Redux is by using the official Redux+JS template or Redux+TS template for Create...
Read more >
How to setup Redux with React (2020) - DEV Community ‍ ‍
Step 1: Setup your react project · Step 2: Install redux and react-redux · Step 3: Setup Redux Store in your index.js ·...
Read more >
How To Set Up Redux in React - Upmostly
Install Redux Dependencies ; npm: npm install @reduxjs/toolkit react-redux ; yarn: yarn add @reduxjs/toolkit react-redux.
Read more >
How to Setup Redux and Connect to React App | Nerd For Tech
Here I am sharing my knowledge and experience about how we can set up Redux and Connect to React App (Everything you need...
Read more >
Simple example with React and Redux on the client side
In the lesson, I will guide you to create a small application with the React & Redux, of which the Redux library helps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found