Category : react.js

Translation: Liu Xiaoxi Original link:https://dmitripavlutin.com/7- … The length of the original textVeryLong, but the content is too attractive to me, still can’t help but to translate it. This article is very helpful for writing reusable and maintainable React components. But because of the length is too long, I divided the article, this article focuses onEncapsulation. ..

Read more

Translation: Liu Xiaoxi Original link:https://dmitripavlutin.com/7- … The length of the original textVeryLong, but the content is too attractive to me, still can’t help but to translate it. This article is very helpful for writing reusable and maintainable React components. But because of the length is too long, I divided the article, this article focuses onCombination ..

Read more

Translation: Liu Xiaoxi Original link:https://dmitripavlutin.com/7- … This article focuses on testability and significance. Due to limited level, some translations in this article may not be accurate enough. If you have better ideas, please point them out in the comment area. AlthoughCombination、multiplexingAndPure componentThe reading volume of the three guidelines is not high, but based on the ..

Read more

After reading this article, you can also implement a redux. The code corresponding to this article is as follows:https://github.com/YvetteLau/ …It is suggested that firstcloneCode, and then read this article against the code. 1.ReduxWhat is it? ReduxYesJavaScriptThe state container provides predictable state management.ReduxIn addition to andReactBesides being used together, other interface libraries are also supported.ReduxThe body ..

Read more

1. Preface Following the last timemake a casual demonstration of one’s capabilityHaving tasted the benefits of high-priced components, they are now in deep trouble. . . So what will it bring this time? Today, let’s look at what sparks [high-level components] and [New Context API] can spark! 2. New Context API The Context API actually ..

Read more

Original address 1. Introduction In daily development, transition animation during page switching is a relatively basic scene. In react project, we usually choosereact-routerTo manage routes, but react-router did not provide the corresponding transition animation function, but very stiffly directly replaced components. To some extent, the experience is not so friendly. In order to realize animation ..

Read more