counter

increase

info 

todos

by reducers file name

export default combineReducers({
todos,
visibilityFilter,
increase,
counter,
info
})

Initial value   Is the corresponding file state Initial value   If you're creating   store Define the initial value Will be covered   reducer The initial value given in the file

/** @Author: winyh* @Date:   2018-06-08 15:54:49* @Last Modified by:   winyh* @Last Modified time: 2018-09-29 15:27:01*/const initState = {  redirectTo:"",  msg:"",  username:"",  password:"",  type:""}
const info = (state = initState, action) => {  switch (action.type) {    case 'REGISTER_USER':      return Object.assign({}, state, "redirectTo":"/boss", "msg":action.text)    case 'REGISTER_SUCCESS':      return Object.assign({}, state, "msg":action.text)    case 'REGISTER_ERROR':      return {...state, "msg":action.text}    case 'GET_USERINFO':      return Object.assign({}, state,action.text)    default:      return state  }}
export default info;

redux More articles on data law

  1. 4 react Simple books introduce redux Of combineReducers Yes redux Data management

    1. src Under the common Under the header establish store Folder Create reducer.js # src/common/header/store/reducer.js const st ...

  2. Novice configuration react react-router4.0 redux fetch sass

    Preface Recently, several interns have come to the company , It just happens that I don't have anything urgent on hand , Then the leader asked me to take them to learn react, For the next react The project is the foundation . Then I wrote a few demo, Help them understand how a serious project builds a configuration project . Now share ...

  3. Codeforces Round #272 (Div. 2) D. Dreamoon and Sets ( thinking mathematics law )

    Topic link The question : 1-m in , Make a group of four numbers , Meet any 2 The number of gcd=k, Find the smallest m To make into n Group solution . And the output analysis : Just stick two interesting analyses .. analysis 1: Then we'll make each group of numbers mutual , And then all of you take ...

  4. python Data aggregation and grouping

    I finished with character processing , But data aggregation and grouping are also important contents of data analysis . Through data aggregation and grouping , We can more easily find the rules hidden in the data . The data packet The core idea of data grouping is : Split - organization - Merge The first ...

  5. React-Native And redux And react-redux

    Preface this paper There are supporting videos , You can watch it as you like . The content of the article varies from person to person , There may be deviations , Welcome to contact me to discuss . All the contents in this article are for learning and communication only , Not for commercial use , Such as the related laws and regulations liability caused by this , It's none of my business , As in the text ...

  6. Data compression storage and decompression algorithm (C Language )

    In some embedded project design , Space is precious , Because a CPU Our storage is limited , So when we're saving the data , Like to compress and save , The famous one is Huffman tree algorithm , A compression algorithm , Of course , We're not going to talk about these in this section ...

  7. Jsoup Get regional data across the country ( Provinces, cities, counties, towns and villages )

    I've been working on something recently , We need a geographic data for all parts of the country , From the provincial and urban areas to the streets of counties, towns and townships . All kinds of douniang , All kinds of Google , I didn't find a complete data . In the end, you can do whatever you want , Finally found a relatively complete data , But the data here is only accurate to ...

  8. Salesforce Open source TransmogrifAI: End to end for structured data AutoML library

    AutoML That is, through automatic machine learning to realize the rapid construction of artificial intelligence model , It can simplify the process of machine learning , It is convenient for more people to use artificial intelligence technology . In recent days, , Software giants Salesforce It's open source AutoML library Transmo ...

  9. Redux Learning my understanding and practice of its workflow

    Catalog 1 Work flow chart 2 Responsibilities of all parts 3 Demo 1 Work flow chart 2 Responsibilities of all parts When I understand this flowchart , It's an easy way to remember , And it's close to the actual job responsibilities . We can put the whole Redux work ...

Random recommendation

  1. php Achieve file upload and download function summary

    File upload and download is an essential module in the project , It's also php One of the most basic modules , majority php The framework encapsulates the functions of uploading and downloading , However, we still need to know about the native upload and download . The basic idea is through form Forms post How to achieve ...

  2. 【BZOJ2002】 [Hnoi2010]Bounce Flying sheep Block /LCT

    Description One day ,Lostmonkey Invented a super elastic device , In order to be in In front of his sheep friends , He invited the sheep to play a game . At the beginning of the game ,Lostmonkey On the ground in a straight line n Devices , Each pack ...

  3. When the application is not UserInteractive It is invalid to display a modal dialog box or form when the mode is running

    stay Web The program refers to WinForm The class library of has caused Mainly in order to web Used in program Message.Show() as well as SaveFileDialog class , can web The program refers to WinForm Class library stay Visual St ...

  4. Cisco ASA Series firewall configuration manual

    Use console Cable login method 1. Use cisco Of console Connecting line , Connected to the device console Ports and computers com mouth ( It's for the notebook USB turn COM Port connector )2. Use a HyperTerminal or secureCRT Software connects devices ...

  5. [Python note ] Chapter 6 : Document processing

    Main content of this article :open The use of file handling functions open function , This function is used for file processing When operating files , The following steps are generally required : Open file Operation file One . Open file File handle = open(' File path ', ' Pattern ') hit ...

  6. Linux C Judge whether the date format is legal

    Title:Linux C Judge whether the date format is legal --2013-10-11 11:54 #include <string.h> // strlen() , strncpy() #includ ...

  7. Black horse programmer _Java aggregate Map

    Map Map summary : Interface Map<k,v> Type parameter : k- The type of key maintained by this mapping v- The type of the mapping value Map aggregate : This collection stores key value pairs . One on one, one on one . And make sure that the key is unique . Nested class summary : s ...

  8. linux_ Timing task

    What is a scheduled task ? linux The tasks and work performed by the system itself on a regular basis : Rotation system log . Backup system data . Clear cache, etc var/log/messages # System log file , ll /etc/|grep cron # Inquire about ...

  9. Xamarin Essentials Tutorial build sharing request

    Xamarin Essentials Tutorial build sharing request Share request class ShareTextRequest Can be used to build complex forms of data , Used to transfer... To other applications . for example , It can specify the theme of shared content Subject, Used to mail ...

  10. hdu 3208 Integer’s Power Sieve method

    Integer’s Power Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) ...