there are two child components in a parent component, which are component A, component B. Component An is the name of a list of data, and component B is a data form formed by a single piece of data of component A. how to make component A re-render after ...
I have two react projects, using two similar sets of components. Most of the project A components and project B components are the same, but individual components are different. The components in them are written by themselves and often need to be chang...
recently, I am learning the framework of react. I have only used a single-page application before, but now I want to use it to build a multi-page forum application. If I encounter some questions, I will ask my predecessors to answer them. I now get th...
...
configure redux-persist according to the tutorial. It is true that redux data is stored in localstorage, but it is all initialized data. The code is posted below. store.js import { createStore } from redux import { persistStore, persistReducer } ...
the code in setTimeout in the react-native project executes immediately, but the cause is not found, and the problem is not found in the react project. if setInterval is used, it will also be executed immediately, and then triggered at a normal time. ...
recently I am learning react, and want to try to be a todo. But there was a problem when the parent component passed the value to the child component parent App: class App extends Component { constructor(props){ super(props); this.state = {...
1. import React from react const Demo = () => { return ( <div>sd< div> ) } export default Demo 2. import React from react class List extends React.Component { render() { return ( <div>sd<...
use the original table component to encapsulate an extra layer of TableC, in the render method of the columns property to render switch, circularly. No matter how you modify the data view, it will not be updated, including using mobx, to ask how to solv...
ask for documents about react-native calling NFC-related APIs. Baidu can t get a link from the boss ....
Hello everyone, if I want to simulate a change event of a text box on a react website. and I don t have react source code. I want to write code simulation on chrome s console. What should I do? if it s your own react project, it s easy to simula...
step 1, in parent component: constructor(props) { super(props); this.state = { checkState: checked , enable:true } } this.setState({ checkState: unChecked , enable:false }) step 2: before calling the subcompon...
* deleteDetails({payload}, {call, put}) { const result = yield call(deleteDetails, {payload}); if (result.code !== 200) { throw result.msg; } else { Toast.success(result.msg, 1); yield put(routerRedux.goBack(...
such as the title, it is very strange. if you write this sentence "parser ": "babel-eslint ", you won t check it directly ...
redux-thunk const fetchData = (params) => (dispatch) => { setTimeout(() => { dispatch({action: GET_DATA , payload: 111}) }) } dispatch const fetchData = (params) => ({action: GET_DATA , payload: 111}); setTimeout(() =>...
app.js import . app.scss ; app.scss $vw_fontsize: 75; @function rem($px) { @return ($px $vw_fontsize ) * 1rem; } $vw_design: 750; html { font-size:($vw_fontsize ($vw_design 2)) * 100vw; @media screen and (max-width: 320px) { font-size...
as mentioned, I have a project with multiple components, all of which have some event handling and operations. And different action events within these components may result in the same result, including updates to the redux. for example, I have two m...
question: why doesn t the style work when an object is put into style= {} in react? Code: loadCssFunc = ()=>{ return { color: red , fontSize:12 } } render() <div style={this.loadCssFunc}>< div> can t b...
for example, there are two modules on the page now, one with the "more " button when you click more, the pop-up Modal, shows more. After closing, click another "more ", you will see the data in Modal flickering into new data, how to solve this pr...
1. Problem: when using antd s Modal.confirm, put an Input, to update the txNote property in state. But as long as there is a confirm, all you get is the previous state, instead of the updated state 2 entered in the confirm. Screenshot: 3. From...
problem description when using react, the "page jump " we implement is implemented using roter. For example, I click on "user list " and route directly to the component of "user list ". when clicking "user list ", isn t it possible to load the c...
Click on the picture to switch between left and right, and then click on the picture to show it in full screen. Is there any js framework used in vue? ...
the thinkphp framework adds: ini_set ( "session.save_handler ", "user ") to the index.php entry file; then reports the following problem ...
when working on a project, directly use the previous language pack and then when the previous language code is brought over to use, there is a warning PS:keypath Home keypath how should I solve this problem? ...
<div class="wrapper"> <img src=" images download logo.png" class="logo"> <img src=" images download appstore.png" class="appstore"> <img src=" images download android...