Data dodania Pytanie
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
2017-06-06 17:06 React Router changing params doesn't fire componentWillRecieveProps »
The Problem: Changing the parameters of a <Route /> component does not update the component it is rendering. The route change is shown in the UR...
(1) odpowiedzi
2017-06-05 18:06 Content in between Header/Footer »
I'm building a site where each page has a <TopNav>, <Footer> and a <Subfooter>. As I understand it, the entry point of the app, sh...
(1) odpowiedzi
2017-06-04 15:06 How do I get http headers in React.js »
I've made a request to a React page, and I need to get the headers from the request. I call the page via the URL: http://localhost/dashboard and I ...
(2) odpowiedzi
2017-05-20 21:05 Navbar for React Website »
I am learning react. I am trying to create a navbar and have my tabs open components as new pages using browser router. (When I click the navitems not...
(2) odpowiedzi
2017-05-08 17:05 Reactjs - Flux - Component is subscribing to event even before its loaded »
I am using ReactJS with flux. All the pages in my application have subscribed to a event name FilterChange. You will see this kind of code in all of...
(0) odpowiedzi
2017-05-05 07:05 Prompt is made when navigating within same route »
For the use case when a page has an internal route, the prompt triggers even when navigating to an internal route where a prompt might not be necessar...
(1) odpowiedzi
2017-05-04 17:05 react-router mounts the wrong component »
I'm writing a React-on-Rails (v. 5) app and am running into an issue. When I visit the path accounts/:account_id/letters/new, React-Router is mounting...
(1) odpowiedzi
2017-04-28 17:04 Relay: How to merge instead of override queries in nested routes? »
I cannot navigate to /users in my app, because it doesn`t trigger fetching of all queries that I would expect it should. My app consists of an App c...
(1) odpowiedzi
2017-04-17 22:04 Use React-Router browserHistory, Wepback 2 historyApiFallback and Node »
I'm trying to run my React app locally using React, Node, Wepback 2. Whenever I hit a route that isn't / I get a 404. My goal is to be able to run my ...
(1) odpowiedzi
2017-04-17 19:04 Migrating react-router v3 to v4 »
I'm currently trying to migrate react-router from v3 to v4, but I can't quite grasp the new concepts, my old react-router v3 code looks like this, can...
(1) odpowiedzi
2017-04-14 04:04 React router get current location on main router component »
I'd like to know how to get the current location from the component I've used to define my routes. For example, I have a component called Routes, whic...
(1) odpowiedzi
2017-04-09 19:04 React-router-dom v4 nested routes not working »
In reference to the unresolved question (as a final conclusion) Multiple Nested Routes in react-router-dom v4 How to nest routes in React Router v4...
(2) odpowiedzi
2017-04-04 14:04 Express sending custom props to React causing props to flash and disappear upon render »
I have a server.js file that should get some data from the server and save it in an object called customP. To make things easier for now I'm playing a...
(0) odpowiedzi
2017-04-03 14:04 What is difference between react-router 4.0, react-router-dom and react-router-redux? »
I am implementing routing in react-application, but now I confused between the advantage of react-router 4.0 over react-router-redux, I am also confus...
(2) odpowiedzi
2017-03-21 17:03 React Router with a custom root and a base component »
I have an integrated React app (it's integrated into an existing Flask app) and the entry to the React app is not on the site's root. The first URL th...
(2) odpowiedzi
2017-03-21 15:03 react router v4 default page(not found page) »
This is common purpose, directing unmatch request to notfound page. making this with react-router v4 looks like previous versions and I expect this ...
(1) odpowiedzi
2017-03-19 22:03 react router v^4.0.0 Uncaught TypeError: Cannot read property 'location' of undefined »
I've been having some trouble with react router (i'm using version^4.0.0). this is my index.js import React from 'react'; import ReactDOM from 'reac...
(1) odpowiedzi
2017-03-12 15:03 Using React IndexRoute in react-router v4 »
I'm learning React myself with online tutorial. So this is a basic example about using React Router: <Router history={browserHistory}> <...
(1) odpowiedzi