TypeScript Advanced Types

Original link: https://www.iyouhun.com/post-231.html Type Compatibility in TS TS Type Compatibility Reference Document Two type systems: 1 Structural Type System 2 Nominal Type System TS uses a structured type system, also known as duck typing, where type checking focuses on the shape of a value That is, in a structural type system, two objects are considered […]

TypeScript Advanced Types Read More »

TypeScript common types

Original link: https://www.iyouhun.com/post-230.html TypeScript is a superset of JS, TS provides all the features of JS, with the addition: type system JS has types (eg, number/string, etc.), but JS doesn’t check if the variable’s type has changed , while TS checks The main advantage of TypeScript’s type system: unexpected behavior in code can be explicitly

TypeScript common types Read More »

React routing

Original link: https://www.iyouhun.com/post-229.html React routing – basic usage The most widely used v5 version here, v5 documentation , v5 Chinese documentation NOTE: The v6 version has breaking updates compared to the v5 version! v6 documentation Steps : Install: yarn add react-router- [email protected] Import the three core components of routing: Router / Route / Link Wrap

React routing Read More »

react-redux learning

Original link: https://www.iyouhun.com/post-228.html Introduction to React-Redux Why use the React-Redux bindings library? React and Redux are two separate libraries with separate responsibilities. Therefore, in order to implement state management with Redux in React, a mechanism is needed to link these two separate libraries together. At this time, the binding library React-Redux is used. Function: Access

react-redux learning Read More »

Learning Redux state management tools

Original link: https://www.iyouhun.com/post-227.html Redux – Concept Redux is the most commonly used state management tool (state container) in React Documentation: redux Chinese documentation redux english documentation The problem with React: React is just an abstraction layer (UI library) of the DOM, not a complete solution for web applications. Therefore, React is more complicated when it

Learning Redux state management tools Read More »

React component basics

Original link: https://www.iyouhun.com/post-223.html Introduction to React Components Components allow you to split your UI into independently reusable pieces of code, and think about each piece independently. Components represent some of the functions in the page, and combine multiple components to achieve a complete page. Features : reusable, independent, combinable. Two ways to create React components

React component basics Read More »

JSX grammar learning

Original link: https://www.iyouhun.com/post-222.html Basic Concepts of JSX JSX is short for JavaScript XML , which means writing XML-formatted code in JavaScript. It is the core content of React , it allows us to create elements in React easier, more intuitive, and improve development efficiency. What is JSX? JS extension syntax, XML syntax can be written

JSX grammar learning Read More »

ceshi

Original link: https://rawchen.com/1374 ceshi This article is reproduced from: https://rawchen.com/1374 This site is for inclusion only, and the copyright belongs to the original author.

ceshi Read More »

house on the zan river

Original link: https://s3-eu-west-1.amazonaws.com/dailyartartwork/img-202205036270fdbb9d132 After the Franco-Prussian War, Claude Monet, who was in exile in London during this period, went to the Netherlands immediately. He and his family stopped at Zaandam, a town near Amsterdam popular with tourists. “A painter can do it all his life,” he wrote to his friend Camille Pissarro. When Paris was

house on the zan river Read More »

A brief introduction to etcd

Original link: http://www.nosuchfield.com/2022/06/14/A-brief-introduction-to-etcd/ Install etcd is a distributed consistent key-value database. First we download the package useradd etcdsu – etcdwget https://github.com/etcd-io/etcd/releases/download/v3.5.4/etcd-v3.5.4-linux-amd64.tar.gztar -zxvf.tar.gzcd After that we can query the version of etcd $ ./etcd –versionetcd Version: 3.5.4Git SHA: 08407ff76Go Version: go1.16.15Go OS/Arch: linux/amd64 We performed the above operations on the three loads 172.19.33.141 , 172.19.32.155 and

A brief introduction to etcd Read More »

Happiness doesn’t need drama

Original link: https://mercurychong.blogspot.com/2022/06/drama.html Some goodbyes you may know are the last time we meet. But some don’t. There are friends who have been in contact all the time, but I don’t know when they have not been in contact. Maybe after an ordinary supper dinner party, I said a dull next time, but never met

Happiness doesn’t need drama Read More »