Top "React-redux" questions

The react-redux package provides the official React bindings for Redux: the `useSelector` and `useDispatch` hooks and the `connect` higher-order component.

axios post request to send form data

axios POST request is hitting the url on the controller but setting null values to my POJO class, when I …

reactjs react-redux axios ajaxform axios-cookiejar-support
How to dispatch a Redux action with a timeout?

I have an action that updates the notification state of my application. Usually, this notification will be an error or …

javascript redux react-redux timeout
What is mapDispatchToProps?

I was reading the documentation for the Redux library and it has this example: In addition to reading the state, …

reactjs redux react-redux
Re-render React component when prop changes

I'm trying to separate a presentational component from a container component. I have a SitesTable and a SitesTableContainer. The container …

reactjs redux react-redux
How to use onClick event on react Link component?

I am using the Link component from the reactjs router and I cannot get the onClickevent working. This is the …

reactjs react-router react-redux
How do I access store state in React Redux?

I am just making a simple app to learn async with redux. I have gotten everything working, now I just …

javascript asynchronous reactjs redux react-redux
Understanding React-Redux and mapStateToProps()

I'm trying to understand the connect method of react-redux, and the functions it takes as parameters. In particular mapStateToProps(). The …

javascript reactjs redux react-redux
React-router v4 this.props.history.push(...) not working

I'm trying to route programatically using this.props.history.push(..) but it doesn't seem to work. Here's the router: import { …

javascript reactjs react-redux react-router
How do I add an element to array in reducer of React native redux?

How do I add elements in my array arr[] of redux state in reducer? I am doing this- import {ADD_…

react-native redux react-redux
'dispatch' is not a function when argument to mapToDispatchToProps() in Redux

I am a javascript/redux/react beginner building an small application with redux, react-redux, & react. For some reason when …

javascript reactjs redux react-redux