UseEffect understands that every render has its own Props and State and every render has its own event handler
Suspense SSR is a new feature in Suspense 18. Literacy of new knowledge
UseEffect is a commonly used hook that supports two parameters, the first is a callback function and the second is a dependency. When the second argument is null or undefined, the callback function executes each render, and the argument
It's interesting to see the use of font ICONS in Ant Design, so let's try one. I wrote about how to use the Alibaba font icon in React in a previous post. This article is about how to package alibaba font icon component..........
It is too slow for the external Internet to access the official document websites of the component library and React. The solution is to clone them to the local preview site, so that the preview can be offline and fast. Clone the document to the local, through the SGO tool preview local various documents.
At present, most websites still have a multi-page structure, but in fact, a website can be made into a SPA. For example, YouTube is a SPA. The company's recent projects are in the form of single-page application rendered by react+ Mobx server. So I pulled the project out and got rid of the business code and kept a shelf to share.
There are also a lot of SSR about React on the Internet, but they are not detailed enough, and some even make beginners confused. In this article, I will introduce you step by step to configure React SSR from 0, so that everyone who reads this article can use it. Next, let's look at wepack-dev-server and Hot Module Replac...
Introduction: Read several react source code interpretation of the article, to tell the truth, personal understanding ability is not high, read once also forgot, how to go to see the source code and do not know where to start, the huge bottom running logic even if read you can be sure that it is run this way? So I had the idea that I could
Context is a feature provided by React to transfer data between components at any level. You've probably used context before, but you don't know how it's implemented. In this article, the principle of CotNext is discussed from the source level, and we can learn from
Everyone said there was no project on your resume, so I helped you find a project and gave you a "build tutorial". Imagine this: You have a function component that works really well, and then one day we need to add a lifecycle method to it. Uh... At first we might wonder how we can solve this problem, and then it turns out that the usual way to do it is to convert it to a class. But sometimes we just have to do it in a functional way.