Category JavaScript

JavaScript tutorial. JavaScript is the programming language of the Web. All modern HTML pages use JavaScript, which is very easy to learn. This tutorial will teach you to learn from basic to advanced JavaScript knowledge. JavaScript online examples This tutorial contains a large number of JavaScript examples.

pure functions, currifications, combinatorial functions

pure functions define1. same input, same output.2. there will be no side effects during execution. currieization defining a function that passesonly a subset of the arguments to the function and returns a function that receives the remaining arguments is curriization…

React documentation read through -part one

1. read-only nature of prosp 1.1 pure functions personal understanding: pure functions are functions that do not change the input parameters inside the function, and the same input will always get the same output, and there are no side effects…

A METHOD OF REFERENCING CSS IN JSX

step 1: create a new css file in the page or pages directory, such as style.css; step 2: import the css file in the jsx page, for example: Step 3: Add the className attribute to the complex you need to…

BASIC USE OF JSX

No.1 INTRODUCTION TO JSX Through the +1 small application of the previous blog, we can appreciate that compared with Vue, writing such a small application with React is more troublesome and the code is more chaotic. Developers who have been…

React Hook

Hooks are functions that allow you to “hook” into React features in function components (hooks are a new feature in react16.8 that allows function components to use state and other react features) No.1 useState useState is used to create state…