problem description I recently worked on a homogeneous react project, and my client is relatively simple and does not require a redux data container. Now the isomorphism uses server-side rendering, but the setState method in my client does not seem to...
for example, write code like this in a class component, state= {currentPic:this.props.pic}; pic is data passed in through connect (mapStateToProps), why is the value of each property of props in the constructor undefined? The function below the construct...
problem description Antd component uses dropdownRender to customize the drop-down box content, the onClick () event added to the extra element has no effect, or is not sensitive (clicking 10 may take effect once). anyone who has used Antd ...
let arr= [{text: sdfa ,completed:true,id:-1}, {text: ssssss ,completed:false,id:-2}]; arr.map ((todo) = > <li onClick={ licompleted}>{todo.text}< li> ) how do you write the onClick function here? ...
when using the select component of antdesign, the optional item < Option > < Option > is obtained by asynchronous request, and there are more than two thousand pieces of data. Stutter occurs during rendering and operation. How to solve ...
problem description the data obtained from the background has many layers, but it can only be assigned to the first layer through this.setState . This will not happen if you have requested similar data before. On the one hand, I hope the gods can exp...
as detailed in the title: multiple uploads are realized with the upload component of antd . but select multiple files. The fileList printed in the onChange event is sometimes the normal number, and sometimes there is only one in . fileLis...
problem description The onload event was not triggered. Ask the boss to advise whether it is written incorrectly related codes Please paste the code text below (do not replace the code with pictures) class Demo extends React.Component { onSe...
original data format let obj =[ {1: 20190805 ,2: 1 ,3: success }, {1: 20191120 ,2: 1.1 ,3: success }, {1: 20190212 ,2: 1.1.1 ,3: success }, {1: 20190212 ,2: 1.1.2 ,3: success }, {1: 20190...
error message is shown in the following figure ...
the error message is as follows ...
how to optimize the performance of react on ie. My project is very smooth on Google, but it is very stuck on ie. There are obvious stutters in switching between tab pages and route. ...
problem description if redux is not used, how to pass values? in the react life cycle, always check the data in render first. Is the official writing the order wrong ? the environmental background of the problems and what methods you have tried jud...
I encountered a small problem in the process of participating in the project, because not long after getting started with React, this problem bothered me for a long time: is probably such an interface. How to modify it to select the comment content...
import () can split the code and reduce packaging. For example, two large components (pages) AMagi B both need public button.js, so how to introduce the A page into button and leak it to the app.js,app configuration router corresponding to the correspon...
has made a login page. At present, only the user name and password are encrypted and the key is agreed with the background to be passed to the background, but the user name and password of the input box can still be seen in the element. I saw that the u...
Jenkins and lavavel continuous integration project. What about the variables of env? when doing project integration, there is a problem. The configuration of the development environment and the test environment to connect to the database is different,...
problem description in html, you use a property that state does not define, but if you use the componentWillMount () method to define this property, the result will be an error. The browser prompts that the property is not defined and cannot refer to ...
an item of react, the function of deleting a photo. After clicking to delete a photo, you need to update the component and get the value of the list again. The two function body requests carry different id, and the request is an asynchronous function. I...
when a child component needs to modify the props passed by the parent component (think about this scenario), can assign a value to its own state at initialization time constructor (props) { this.state = { foo: props.foo } } then opera...
linux node 8.11 after the execution of the npm start project can run, but the file changes will not automatically compile the ant-design used ...
has been good all the time. I suddenly reported this mistake today. I don t know why . ...
vue drop-down load data, each time you trigger a drop-down load, load ten pieces of data on a page. Has anyone ever written such a thing? ...
I already have the address of the picture (url) now I need to click the button and open the download dialog box to download the picture file but if you do this: var a = document.createElement( a ); a.href = this.editBrand.contract; a.download=&quo...
when Nginx acts as an agent, the ss can see that a TCP connection is created with the client and the server, respectively. does requesting LVS create a TPC connection when proxying to the server? ...