Tag 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…

How to use React-Redux

1. Using react-redux in React projects can make it more convenient for you to use redux, the principle is to use a tag nesting when registering the app, .js subcomponents of your app, and pass all the forms to youindex.jsProvideerstateprops…

react redux asynchronous Action

The last two articles describe synchronous operations, where the state is updated immediately when a dispatch action is taken. But in practice, we have a lot of operations that take a while to get the result after execution. So how…

5 React Architecture Best Practices for 2021

There is no doubt that React has revolutionized the way we build user interfaces. It is easy to learn and greatly facilitates the creation of reusable components to provide a consistent look to your website. However, because React is only…