1. Download the toolkit Redux, react Redux and Redux saga in the project
yarn add redux
yarn add react-redux
yarn add redux-saga
2. Create Redux folder and corresponding directory in src directory
3. Introduce createStore in store.js
Create store: call the createStore() method to get the store. The parameter passed in the method is a ...
Posted by thatsme on Mon, 06 Dec 2021 14:25:15 -0800
Advanced react component
Introduction to component communication
A component is an independent and closed unit. By default, only the component's own data can be used. In the process of componentization, we split a complete function into multiple components to better complete the functions of the whole application. In this process, it is i ...
Posted by ursvmg on Sun, 05 Dec 2021 04:52:05 -0800
Posted by pugg09 on Sun, 05 Dec 2021 01:48:29 -0800
Use Hook only at the top
Do not call Hook in loops, conditions, or nested functions to ensure that they are always invoked at the top level of your React function. By following this rule, you can ensure that hooks are called in the same order in each rendering. This allows react to maintain the correct hook state between multipl ...
Posted by SyWill on Sat, 04 Dec 2021 18:57:34 -0800
react introduction and installation
Chinese website: https://react.docschina.org/
Official website: https://reactjs.org/
1.react Is used to build web User interface.
3.react It can scale freely in front of a class library or an entire framework.
Posted by ReDucTor on Fri, 03 Dec 2021 07:37:36 -0800