In React, communication between components is a very important topic. When we build complex applications, we often need different components to share data or collaborate…
First published on public account front-end hybrid development , welcome to pay attention. As a cross-platform mobile app development framework, React Native needs to communicate with…
When working with React Native, you’ve most likely already used React AsyncStorageas a storage solution. For example, you can use AsyncStorageto store key-value pairs, such as your…
background With the popularity of React Hooks, component logic writing has become functional; logical function declarations and function code structures , as the logic increases in complexity,…
Start from the problem I was asked this question: If you want to implement a useTitlemethod, the specific usage examples are as follows: functionHeader () {…
Preface When I used antd’s tooltip component in a recent project, I found that it is a bit unstable. It often floats to the upper…
In the documentation, the preferred way Reactto build a new application is (create-react-app).ReactCRA CRAIt was launched in 2016. At that time, there were no systematic Reactscaffolding tools for everyone…
We know that after Reactits release Hooks, it brought a wave of Hooksenthusiasm in the industry. Many frameworks (such as Vue Composition API, Solid.js) have borrowed Hookspatterns from . However, even…
Although Reactthe official website uses a lot of space to introduce best practices, due to JSXthe flexibility of the grammar, strange Reactwriting methods always appear. This article introduces…
What are React higher-order components React high-order components wrap the React components that need to be modified in the form of high-order functions and return…









