react source code analysis - Introduction to beginWork

catalogue 2021SC@SDUSC Execution process of beginWork Talk about the updatesclasscomponent method About bailoutonalreadyfinished work Entrance to DIFF algorithm summary 2021SC@SDUSC Execution process of beginWork Talking about beginWork, what react needs to schedule is the construction and update of the Fiber tree, so we start wit ...

Posted by MathewByrne on Sun, 31 Oct 2021 10:53:57 +0100

Did you use createContext correctly?

catalogueprefaceRoot causes of performance problemsQuestion 1 (overall repeated rendering): all the sub components wrapped by the Provider component are renderedProblem 2 (local duplicate rendering): using useContext causes the component to renderSolutionProblem solving 1Problem solving 2reference resources preface createContext is an api provi ...

Posted by fotofx on Sat, 30 Oct 2021 06:44:35 +0200

React learning notes and experience (including comparison of function components and class components)

1, React project creation 1. Introduce third-party plug-ins to create React project Install third-party plug-ins npm i react react-dom Introduce react DOM into the page <script src="./node_modules/react/umd/react.development.js"> <script src="./node_modules/react-dom/umd/react-dom.development.js"> Create React element // Cr ...

Posted by jonnym00 on Tue, 12 Oct 2021 19:58:59 +0200

[React] React component Foundation

1, Component introduction Component is the core of react. Using react means using components. Component represents some functions in the page, and multiple components are combined to achieve complete page functions. It is characterized by reusability, independence and combination. React component can cut the UI into some independent and re ...

Posted by grantson on Wed, 15 Sep 2021 05:04:46 +0200

Longstick's learning week - week 12

preface The school started, but since the end of the defense, the state has been unable to return. I don't want to study or move. I just want to sleep and play, but I worry every day for no reason. I didn't brush the interview questions, didn't practice the physical test, etc. More or less anxious, yes. No matter how much, this time sim ...

Posted by Kawal on Sun, 05 Sep 2021 07:39:11 +0200

vue3.0 Source Parsing 1: Data Binding Principles (Up)

Preamble Introduction Beginning with this article, we are officially entering the vue3.0 source code parsing process.Personally, starting with ceateApp is not the best way to learn, so let's start with composition-api responsive principles and work together to learn what dramatic changes vue3.0 brings. The serialized articles are roughly the s ...

Posted by reinmedia on Sat, 27 Jun 2020 19:18:18 +0200

HTML Final Design - Code Text

Pre-declaration I'm not really good. This web page design is also a regular web page which uses what I've learned to do. It can be used as a reference for freshmen in the future. The effect of commercial websites is certainly unparalleled. Expectations are too high to close. Please criticize me severe ...

Posted by julia k on Mon, 22 Jun 2020 18:06:09 +0200

Analysis of 5000 word react native source code

Write at the beginning Recently, the official account of React-native is the main attack. By the way, I will review the next React-native. Node.js And cross platform direction, architecture and Debug If you are interested in the proposal, we should recommend the following official account. https://mp.weixin.qq.com/s/RsvI5AFzbp3rm6sOlTmiYQ Of ...

Posted by godfrank on Mon, 22 Jun 2020 06:32:47 +0200

Learn the overall structure of redux source code and deeply understand the principle of redux and its Middleware

1. Preface Hello, I am Ruokawa . This is the eighth part of the whole learning source architecture series. The word "overall architecture" seems to be a little big. Let alone the overall structure of the source code. The main thing is to learn the overall structure of the code without going into the implementation of other specific f ...

Posted by drfate on Mon, 15 Jun 2020 04:06:57 +0200

ReactNative: Component encapsulation (e.g. secondary menu components)

1. Introduction Previously, the basic API and UI components of RN are introduced. These components exist in the form of granularity in complex composite components. How to effectively and reasonably use them for packaging is very necessary.There are many benefits to developing composite components, most notably reuse and independent functional ...

Posted by farkewie on Fri, 12 Jun 2020 04:17:07 +0200