The problem follows the react redux.

  • do you usually use redux when you use React,? It is troublesome to use other libraries for managing state

it"s hard to change a lot of files to write a random event binding:

actionTypes.js
actionCreators.js
reducer.js
js
  • how do you use it in normal development?
Nov.19,2021

  1. depending on the situation, redux is used when the project is large, there are many states, and the data flow is complex. Otherwise, it will not be used. It may directly use state + props + global variable , or it may use react16 context , or it may use event bus or mobx . In short, when the data flow is not complex, how to get it easily and how to get it quickly
  2. .
  3. redux sample code is too much and complicated to write, and it has indeed been criticized by people all the time, so corresponding solutions have emerged in the community, which not only let you retain the advantages of redux (data is predictable and controllable), but also liberate you from the sample code, that is, rematch https://rematch.gitbook.io/ha..
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-1b3737b-4ecde.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-1b3737b-4ecde.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?