What is the relationship and function of reducer and action in react.js? What is their life cycle?

What is the relationship and function of reducer and action in

react.js? What is their life cycle?

reducer
action
Apr.11,2021

teacher Ruan Yifeng's
Link description


when action is executed, reducer is automatically triggered. Reducer is just a pure function, and there is no life cycle


if you understand vue, you can understand reducer as a state manager for vuex, and action is the key to this state manager.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e63925-4d143.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e63925-4d143.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?