useReducer and local side effects

  1. Our reducers should often have logic in them.
  2. Our reducers may update multiple state items for one action.

--

--

--

“A language that doesn’t affect the way you think about programming is not worth knowing.”

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Where JavaScript Is Used

NumPy 2D array

Vue 3 composition API in a nutshell

Don’t cheap out on your types

Intro to JavaScript 3D Physics using Ammo.js and three.js

TypeScript Maybe Type and Module

React: Styled Components

Completed created code from data scraping (project ebay.com)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rob Bertram

Rob Bertram

“A language that doesn’t affect the way you think about programming is not worth knowing.”

More from Medium

An Interview With Roger Pettingell, Luxury Waterfront Real Estate Specialist — SuperbCrew

How (nearly) to get on The Apprentice…

class Declassified:

Sharing is caring, even in coding

squirrels sharing a celery