O OneWordDaily
AI-generated image

reducer

/riːˈdʌsər/ noun · British & US
Valid in UKValid in US
Share WhatsApp

What does reducer mean?

noun

A function in functional programming that takes an accumulator and a value, and returns a new accumulator. In Redux, a reducer is a function that takes the current state and an action, and returns a new state.

Example

"The reducer function combined the user input with the existing state to produce a new state."

Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.

Etymologically related

Synonyms for reducer

Rhymes with reducer