Remember that react-hooks are react-hooks. They are react-hooks. They are react-hooks. How do you implement simple React Hooks? You may have your own ideas, but take a look at how the solution described here is constructed.

High overlook

The height of the sky, feel the universe is infinite

Basic technology

2020 Chrome DevTools features

As front-end development, it is common to deal with Chrome. It is necessary for us to understand the updates of Chrome debugging tools, which help and improve the daily development and debugging. The new Chrome DevTools is integrated with Lighthouse, and features a degree of refinement in both the Element review panel and the Performance panel, as well as video demonstrations of the features that make it easy to understand and learn.

Tasks, microtasks, queues, and scheduling for the browser

Event loops in browsers have long been a common topic, and many articles and information have been published in the community. But do you really understand the concepts of Tasks, Microtasks, queues and their scheduling relationships in Event loops? In this article, Google Chrome developer Jake Archibald wrote a blog, the content is simple, in the task scheduling and JS stack part also carefully drawn CSS interactive animation, finally also discussed the differences between different browsers and the definition of the relevant specification, very worth reading.

Node.js Memory Leak Guide

Due to Javascript’s garbon-based memory management, developers generally don’t pay attention to the allocation and release of memory, but a little attention during development can cause serious memory leaks. This article explains the garbage collection mechanism of Javascript, gives practical examples of memory leak scenarios in Node services, and focuses on how to use Heapdump and Chrome DevTools to accurately locate memory leaks in online services. It has reference significance for Node service performance optimization.

The front frame

Create 90 lines of Hooks that mimic the React source code flow

By simulating the data structure and workflow of React, the author realized useState Hook with simplified code. It is easier to understand the React Hooks source code after learning this article and the corresponding source code. If you have simply used Hooks or have not yet learned about them, reading this article is a great opportunity to learn from them.

Graphics programming

Use web Worker to drive webGL rendering

This paper introduces how to realize webGL rendering driven by Web Worker through Screencanvas API. Keeping the logic of update rendering out of the main thread can greatly reduce the blocking of page responses caused by JS execution. A comparison of demo data is provided.

Tool to promote

PolyK – A polygon library written in Javascript

Ployk.js provides a number of functions to help you work with polygons more easily, and some physics engines can also make some interesting effects, such as the following demo using phaser+matter.js, which uses the Ployk.js library to slice objects with little code. This may give you some new ideas for developing H5 games.

The sea gleanings

The sea, product kuibu and thousands of miles

Nerv – The React component framework

As we climbed up the ladder in the front end, as we learned more and more about frameworks like React, one thought came to mind: “I can also implement a framework like React.” Nerv is the implementation of such ideas in JINGdong. I believe that you will have a different understanding of React through Nerv.

Use React Hooks in small programs

If you choose React to develop apps, you’ve probably already learned about Taro. You’re probably building your own apps using the Taro 3.x widget platform. However, in the course of Taro’s development, support for Hooks was also one of the features that needed to be specifically optimized, and thinking about implementing these features would be of great benefit to the improvement of their own technology.

“Dandelion” magazine, updated weekly, we focus on mining “basic technology, engineering, cross-end framework technology, graphics programming, server development, desktop development, artificial intelligence, design philosophy, front-end framework” and other general direction of the industry hot issues, and professional interpretation; Not only that, we will also recommend the selection of concave and convex technology articles, to show you the research direction of the team.

Look up, dandelion seeds will take root and germinate, such as summer flowers gorgeous; Ge Ge Zhi zhi, we climb to overlook, the sea gleaned, in order to product silicon step to thousands of miles.

Dandelion JELLY Technology Weekly contribution Guide

Welcome to the bump Lab blog: AOtu.io

Or pay attention to the bump Laboratory public account (AOTULabs), push the article from time to time: