NotJustCode

CSS viewport-based length units

Original link: https://mebtte.com/new_css_viewport_units Before entering the topic, let’s first understand the existing CSS length units, which can be divided into absolute length units and relative length units. ## Absolute length unit### `px` Modern displays are composed of pixels. In our case For example, the monitor has a resolution of 2560×1664, which means that the monitor

CSS viewport-based length units Read More »

Excalidraw supports custom fonts

Original link: https://mebtte.com/excalidraw_with_custom_font ![Excalidraw](./excalidraw.png) [Excalidraw](https://excalidraw.com) is an open-source sketchpad tool that can be used to draw pictures with handwriting style. Although Excalidraw itself supports multiple languages, its handwriting style fonts only support English, and other languages ​​will fall back to normal fonts… This article is transferred from: https://mebtte.com/excalidraw_with_custom_font This site is only for collection, and

Excalidraw supports custom fonts Read More »

JuHost Trample Records

Original link: https://mebtte.com/pitfall_of_juhost In the past two weeks, the small host of Tencent Cloud Singapore, which is used for intranet penetration, has become unstable. The bandwidth and packet loss rate will be high and low, so I want to change the machine. This article is transferred from: https://mebtte.com/pitfall_of_juhost This site is only for collection, and

JuHost Trample Records Read More »

Some services I deployed with Docker

Original link: https://mebtte.com/my_services_deployed_by_docker Some time ago, I started tossing about NAS, or Home server, tried many solutions, and finally adopted the method of Ubuntu Server + Docker. The following are some services I deployed with Docker. ## Portainer Docker is used in the case of CLI, commands and parameters Often need to check documents. [Port…

Some services I deployed with Docker Read More »

React Fragment Add event listener?

Original link: https://mebtte.com/react_fragment_with_event_listener [React Fragment](https://ift.tt/N0FVTzw) Supports grouping child elements without adding additional nodes. In the document, the Props of `Fragment` only have `key`, we give Fragment Add any event listener such as `onCli… This article is reprinted from: https://mebtte.com/react_fragment_with_event_listener This site is for inclusion only, and the copyright belongs to the original author.

React Fragment Add event listener? Read More »

How to resolve race conditions in React

Original link: https://mebtte.com/how_to_resolve_race_condition_in_react I recently read an article “[Solving Common Front-End Problems: Race Conditions](https://juejin.cn/post/7098287689618685966)”([PDF](./archive.pdf)), explaining what race conditions are Conditions and how to solve this problem, but I think the example is not perfect, so I repeat it with my own example. <iframe… This article is reprinted from: https://mebtte.com/how_to_resolve_race_condition_in_react This site is for inclusion only,

How to resolve race conditions in React Read More »