How to refactor a React project into a Vue project by using Vue, Vuex, Immutable
Use Vue, Vuex, Immutable to make Tetris, modified from the React version
Read the source code of immer.js closely
This week's storehouse of intensive reading is immer. Immer is one of the most recent projects to take off, developed by Mobx author Mweststrate. For those of you who know Mobx, Immer is a lower-level Mobx that takes mobX's features and makes it very elegant to use when combined with any data flow framework. Immer...
Immer.js usage documentation and practices in the Redux project
Immer is an IMmutable library written by the author of Mobx. The core implementation is to use ES6 proxy to implement JS immutable data structure with minimal cost. It is easy to use, small size, ingenious design, and meets our needs for JS immutable data structure. Helpless network perfect document is too little, so I wrote a, this article...
Immutable. Js and practice in the React + Redux project
Zou Gongyi, a front-end engineer of Meituan Dianping, has 5 years of Web front-end development experience, and is now a member of meituan Dianping ordering team. This article introduces immutable. Js, a library from Facebook, and how to integrate immutable. Js into our existing React + Redux mobile project. This article is longer...
I'm tired of Redux, build a wheel Rectx: Episode 3
You know what? I don't even want to write it, but I can read it myself, and I don't care if I don't. Here we go. You said light-weight will come to feed? It must be. The library is only a few k in size. Second, the new version of Rectx does not rely on React. Context, so it can be used in any React version. Of course, with just 60 lines of core...
React Practice (2) Redux + immutable + redux-saga
React has close to 70,000 stars on Github and is currently the most popular front-end framework. React+Redux React+Redux
Top 6 Frequently Asked Questions about Map in Java
We all know that a Map is a key-value data structure, where each key is unique! This article discusses eight of the most common questions about the use of maps in Java. For simplicity, all examples will use generics. And the generic symbols K and V appear in this paper are inherited implementation Co
Invariant meanings
It is not clear what invariant means when reading this passage. It's a bit confusing to read this introduction without fully understanding it, but I think it makes sense when I do -- and I think the examples used in this entry (loop invariants and MU puzzle) are not easy to understand, class invariant is easier to understand...
Why are strings immutable in Java?
The original address: WhyStringisimmutableinJava? Why are Strings immutable in Java? String is immutable in Java. An immutable class means that its instance cannot be modified after it is created
Redux + Immutable. Js performance optimization
As we all know, the most troublesome part of using Redux is the compilation of reducer, because Redux requires that state be immutable, that is, the changed state tree must be a new reference. Reducer is what many people would call deep cloning, but it is not. This process is neither deep cloning nor...