Category React

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…

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…