Dylan

Dylan

How to use React-Redux

1. Using react-redux in React projects can make it more convenient for you to use redux, the principle is to use a tag nesting when registering the app, .js subcomponents of your app, and pass all the forms to youindex.jsProvideerstateprops…

strongest collation of common regular expressions (quick reference manual)

1. the expression of the check digit digit:^[0-9]*$ n-digit number:^\d{n}$ numbers with at least n digits:^\d{n,}$ numbers with m-n digits:^\d{m,n}$ numbers beginning with zero and non-zero:^(0|[1-9][0-9]*)$ numbers with up to two decimal places starting with nonzero:^([1-9][0-9]*)+(.[0-9]{1,2})?$ positive or negative numbers…

react redux asynchronous Action

The last two articles describe synchronous operations, where the state is updated immediately when a dispatch action is taken. But in practice, we have a lot of operations that take a while to get the result after execution. So how…