Questions tagged [react-router-redux]

A library of bindings to keep react-router and redux in sync (formerly known as redux-simple-router).

A library of bindings to keep react-router and redux in sync (formerly known as redux-simple-router).


###Related tags

512 questions
0
votes
2 answers

How to use js code to forward reactjs-router?

when u seem to require forward in reactjs we used to put a Link or button ,and then consumer click it ,then the page reload corresponding path of router . Now,I want the page turn to other path of router when I request a post and the status of…
page xu
  • 3
  • 2
0
votes
2 answers

React+Redux - Expected the reducer to be a function

I'm trying to implement redux in my universal app, but I've some problems with redux. I've this configureStore function: import { createStore, applyMiddleware, compose } from 'redux'; import thunkMiddleware from 'redux-thunk'; import createLogger…
Noah
  • 59
  • 6
0
votes
1 answer

history on redux state is not availb but it is available on react component

My index.js looks like: const store = configureStore() render( , document.getElementById('root') ) and my Root.js looks like: class Root extends Component { render() { const { store } =…
varad
  • 7,309
  • 20
  • 60
  • 112
0
votes
1 answer

React Router - Build State from Query String

New to React, building a search app where the URL is built up based on search term entered and subsequent filters that are selected. I am updating the query string, not the path, based on search term and selections made. (e.g…
0
votes
1 answer

React/Redux Where to save State

I am having trouble understanding some ReactJS and Redux principles, In Redux we have a store and a set of reduceres that give your final state ( this part I get). A Component receives props from their parent component, in case of Redux it passes…
Morphex
  • 306
  • 3
  • 15
0
votes
1 answer

Can't access context.router with react-router-redux

I m currently using react-router-redux on a project and everything is working fine except for the fact that i can't figure out how to access the react-router router. @connect((state, props) => { return { …
0
votes
2 answers

react-router, access a route param in the config

i'm doing an i18n implementation. I have my routes like /:locale/rest/of/route and i want to pass the dictionary depending on which locale is loaded. This would be cool to do it on the routes configuration. But i can only think on doing this on…
Nico
  • 1,241
  • 1
  • 13
  • 29
0
votes
2 answers

react-router / redux-simple router loading deep routes

I'm struggling with what ought to be a simple thing using react-router (with redux-simple-router, fwiw). I have some basic routes defined like so:
snowell
  • 181
  • 2
0
votes
1 answer

Navigate to another path with redux-simple-router

I'm trying to navigate to another path with redux-simple-router. Here's my component fragment (see handleSubmit method): import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from…
Dmitry Shvedov
  • 3,169
  • 4
  • 39
  • 51
0
votes
1 answer

Redux Simple Router pushPath not updating URL

I ported redux-simple-router into a boilerplate react/redux isomorphic kit (https://github.com/erikras/react-redux-universal-hot-example). I have a simple click event handler that calls 'pushPath' from redux-simple-router. However, pushPath doesn't…
capkutay
  • 183
  • 2
  • 11
-1
votes
1 answer

Provider from react-redux Doesn't Work for me

This is the code in index file the packages i try to copy past a valid code but it doesnt work Please if anyone has the same probléme can help me
omar ghazi
  • 11
  • 2
-1
votes
1 answer

i am stuck in react router dom can anyone help me

HOw my website looking before commit click to view my App.js file }> } /> } >
-1
votes
1 answer

Cant read a value from redux toolkit store on different components

I'm trying to create a redux toolkit that store an object so I could read the object values from different components on different react-router path when calling to read the values that stores in the redux store, I'm getting the initial state I…
-1
votes
1 answer

How to add react frontend to spring boot rest?

I have a react frontend that I want to use with my springboot rest api. I used nwb to create my react app. I'm trying to use the frontend-maven-plugin but I can not get my react app to work. The rest api works great. Can't find any info online. …
Roro
  • 427
  • 2
  • 8
  • 20
-1
votes
2 answers

React-Route did not match any routes

i'm following this tutorial step by step but when i run "npm run start" i get the next error: Warning: [react-router] Location "/todolist" did not match any routes Any advice to fix that?
1 2 3
34
35