Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useReducer OR Redux: #1

Open
stanjdev opened this issue Sep 13, 2020 · 1 comment
Open

useReducer OR Redux: #1

stanjdev opened this issue Sep 13, 2020 · 1 comment
Assignees

Comments

@stanjdev
Copy link
Owner

stanjdev commented Sep 13, 2020

install redux and react-redux?

decide: https://dev.to/waqasabbasi/server-side-rendered-app-with-next-js-react-and-redux-38gf

useReducer:
https://forum.freecodecamp.org/t/usereducer-for-forms/359255

@stanjdev stanjdev self-assigned this Sep 13, 2020
@stanjdev
Copy link
Owner Author

redux boilerplate set up. How to use one action creator to dispatch all changes to each individual import? using Computed Property Names in JS?

http://eloquentcode.com/computed-property-names-in-javascript

[myPropertyName]: 15
['field' + fieldNumber]: 15
[`field${fieldNumber}`]: 15
[e.target.id]: something

vs setting Dynamic Property Keys
https://www.samanthaming.com/tidbits/37-dynamic-property-name-with-es6/
similar?

let cake = ‘yum’
let pan = { [cake]: ‘indeed’ } 
so the output would be this object: { ‘yum’: ‘indeed’ }

@stanjdev stanjdev changed the title SETUP REDUX! Complex state management. Lots of numbers and calcs to keep track of useReducer instead of Redux: Oct 13, 2020
@stanjdev stanjdev changed the title useReducer instead of Redux: useReducer OR Redux: Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant