Data dodania Pytanie
2017-12-06 17:12 Using percent ( % ) sign in react-router :id »
I'm trying to use a percent sign in a react-router id. As using % in URI is forbidden, I have to encode my URI manually to be able to use this percent...
(1) odpowiedzi
2017-11-21 10:11 Check history previous location before goBack() react router v4 »
My goal is to enable a "Go Back" button, but only if the route/path the user would go back to is in a certain category. More precisely I have two ki...
(1) odpowiedzi
2017-11-19 11:11 React Router causes Redux container components re-render unneccessary »
Here is my major code, App component is connected to Redux's store: class App extends Component { render() { const { requestQuantity } = this...
(0) odpowiedzi
2017-10-21 23:10 Scroll to top when using Switch (react-router) »
When navigating from one page to another, I would like the user to be automatically scrolled to the top, i.e. scrollTo(0, 0). According to the react-...
(3) odpowiedzi
2017-10-19 03:10 Do I need Redux to display ItemList on the left and ItemContent on the right? »
Do I really need Redux to manage the app state to achieve this? If not - How do I manage/implement my routes and state for <ItemList /> and <...
(2) odpowiedzi
2017-10-16 00:10 Server-side rendering always returns an error "Target container is not a DOM element" »
I'm stuggling with server-side rendering and univeral routing in my React app. I'm tryi"Target container is not a DOM element" error. Not sure where t...
(0) odpowiedzi
2017-10-13 16:10 Server-side rendering in React and error while using ejs as view engine »
So At first I created my app without any view engine. My server looked like this: var app = express(); const apiProxy = httpProxy.createProxyServer...
(0) odpowiedzi
2017-10-13 14:10 react-router-dom not working as intended »
I want to achieve this(V3) <Router> <Route path="/" component={App}/> <Route path="*" component={Whoops404}/> </Router&...
(2) odpowiedzi
2017-10-02 19:10 React router v4 wildcard next to index route »
Let's say we have this setup const Parent = () => ( <Switch> <Route path="/data" component={Child} </Switch> ) const Child...
(1) odpowiedzi
2017-09-28 03:09 componentDidMount not running after calling browserHistory.push("/url") »
I have an issue where I will send a user to a react-router route after login, based on the following: ... //check login brows...
(2) odpowiedzi
2017-09-24 04:09 React Router V4 protected private route with Redux-persist and React-snapshot »
I'm implementing private route like so using React Router Route Component: function PrivateRoute({component: Component, authed, emailVerified, ...res...
(0) odpowiedzi
2017-09-23 22:09 React Router components getting unmount on route change »
I creating a SPA with React + Redux, where I am using react-route. I am facing one issue that whenever I am switching my routes like /about, /contact,...
(1) odpowiedzi
2017-09-21 15:09 React Router / Express - Refreshing dynamic URL parameters »
My React router works fine when navigating to '/Article/1/' via a link, though when I refresh my browser, it no longer detects my Article component. ...
(1) odpowiedzi
2017-09-14 18:09 React rendering unnecessary component in my app »
New to react and working with React Router so that I have many pages. I am in my Home.jsx and it looks like this. import React, { Component } f...
(1) odpowiedzi
2017-09-11 20:09 Authenticate async with react-router-v4 »
I have this PrivateRoute component (from the docs): const PrivateRoute = ({ component: Component, ...rest }) => ( <Route {...rest} render={pr...
(1) odpowiedzi
2017-09-03 22:09 What is wrong with my custom authentication react-router route? »
Unfortunately I fail to create a custom route with react-router version 4. I'm trying to construct a route which renders a component, if the user is a...
(2) odpowiedzi
2017-08-20 15:08 Serve another(standalone) page or static file in website built with react »
I Have a website build with react, which uses react-router. For some route i want to serve another page or static file, but since all request are forw...
(0) odpowiedzi
2017-08-20 12:08 React Router DOM — How to include a navigation bar on every page? »
I have this code in my App.js component: render() { return ( <div> <Navbar/> <Brow...
(1) odpowiedzi
2017-08-11 20:08 Module not found: Error: Cannot resolve module 'routes' »
I'm following Cory House's pluralsight course on building React in ES6. Unfortunately I'm stuck on one of the first couple steps, setting up the basic...
(3) odpowiedzi
2017-08-09 21:08 Passing props through React-Router v4 <Link /> »
Question: How can I pass a prop or a single value, like an _id, through React-Router's Link component, and catch it at the endpoint? This is what I m...
(2) odpowiedzi
2017-08-08 01:08 How to avoid writing the same logic in components having a different layout? »
How can I avoid writing the same code when two components share some same methods but have a different layout? The sample components below have a met...
(2) odpowiedzi
2017-08-05 18:08 react router not matching to route »
I am trying to render react component based on query string. Query string changing in browser address bar like quiz/1, quiz/2 but related component is...
(1) odpowiedzi
2017-08-03 15:08 React Router Flux does interprets Component as Object »
This is how I create my Component _createList = () => { const list = Object.keys(this.state).map((key, index) => { return ( <T...
(1) odpowiedzi
2017-07-29 22:07 React Rout v-4 `this.props.match.params` **undefined** and `staticContext` undefined »
I am using "react": "^15.6.1", "react-dom": "^15.6.1", "react-router": "^4.1.2", Hare my rout : <BrowserRouter> <div...
(1) odpowiedzi
2017-07-28 14:07 Detect Route Change with react-router »
I have to implement some business logic depending on browsing history. What I want to do is something like this: reactRouter.onUrlChange(url => {...
(2) odpowiedzi
2017-07-06 12:07 react-router 4.1.1 returning 404's »
I've just upgraded to "react-router": "^4.1.1" and now I'm getting 404's from all routes except the default route. Not sure what I'm missing here? An...
(1) odpowiedzi
2017-07-03 07:07 <Link> tag producing error: React.createElement: type is invalid »
Error in React Router's link tag while switching from 0.14 to v15.5. This worked fine in the former version and it throws the following error in the l...
(1) odpowiedzi
2017-07-03 05:07 React Router 4, how to check for a possible redirect on all routes? »
In my app, after a user signs up, I need the user to confirm their email address before being able to use the app. If the user is authenticated state...
(0) odpowiedzi
2017-06-27 16:06 Render child component via React-router »
So I've been struggling with this code. I have a component which accepts a child as a prop, and it is supposed to be the base of all the pages I host....
(2) odpowiedzi
2017-06-25 06:06 How to define propTypes for a component wrapped with withRouter? »
I'm wondering what the best practices are for defining propTypes on a component that will be wrapped with a 3rd-party HOC, in this case, withRouter() ...
(1) odpowiedzi
2017-06-22 11:06 React : POST and GET not found »
I'm following this tutorial which I adapt to React Router v4. I have these files : auth.js const express = require('express'); const validator = re...
(1) odpowiedzi
2017-06-20 16:06 What is ACTUALLY the right way to transition/redirect using React Router? »
I'm in the process of learning React Router, and I can't seem to figure out what is currently the recommended way to redirect. I've read many articles...
(3) odpowiedzi
2017-06-18 03:06 Using Dygraph in React with redux? »
I've been having a lot of trouble implementing Dygraph in React (I'm using redux): http://dygraphs.com/. The Dygraph wrapper packages on NPM don't see...
(1) odpowiedzi
2017-06-15 11:06 How to deploy react js in existing Codeigniter project »
I am using Codeigniter 2.0 Framework. I need to use react type script to load view. I am using Nginx server. How to deploye react js with existing pro...
(0) odpowiedzi
2017-06-10 03:06 Why <Route component={Menu}/> instead of <Menu />? »
I have a submenu with Routes in my /About. This submenu is called AboutMenu and is present at all pages under /About like => /About/Company and /About...
(1) odpowiedzi