Data dodania Pytanie
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
2017-03-05 18:03 React Router confusion »
New to react & react-router. I'm trying to understand this example: https://github.com/ReactTraining/react-router/blob/1.0.x/docs/API.md#compon...
(4) odpowiedzi
2017-03-01 08:03 In React-Router v3, must all routes be nested within a <Route> with path="/"? »
I ask this because I want to know if this (below) is possible and if so how should my pages look to have this work correctly? <Router history={bro...
(3) odpowiedzi
2017-02-27 22:02 Webpack code splitting, System.import route not found if imported from separate file »
The PlainRoute Router logic works perfectly when implemented as follows ... const componentRoutes = { component : Home, path : '/', in...
(1) odpowiedzi
2017-02-27 06:02 How to dispatch actions on location change with react router v4 »
I am using react-router-4.0.0-beta.4 with redux, I am trying to figure out the best way to dispatch actions on route change. I see that a few versions...
(2) odpowiedzi
2017-02-18 05:02 How to fix blank screen when using react router in redux »
With localhost, it's normal. But when I use "npm run build" and upload the source to server live, My page is the blank screen which doesn't have any e...
(3) odpowiedzi
2017-02-14 23:02 Send both 404 status and redirect to 404 component in react-router »
I have a react-router 3.0.0 setup with a NotFound component I'm showing as a fallback: <Route component={NotFound} path="*"/> However this re...
(0) odpowiedzi
2017-01-29 18:01 React Router and route params »
I've had a browse and I couldn't find anything solving this for me. I've got a problem with a routing requirement that I've got within my SPA. There i...
(1) odpowiedzi
2017-01-27 17:01 create-react-app, code splitting and jest »
I'm developing an application using create-react-app and I'm trying to split my code into modules implementing the way described in the react-router h...
(2) odpowiedzi
2017-01-26 07:01 React Router and History »
Hello I'm really new to react and I'm watching this wonderful youtube ReactJs tutorial from Learncode.academy. This tutorial is from last year I don't...
(1) odpowiedzi
2017-01-18 23:01 React-router v4 - display current page »
I have a main component, App that holds all my Match components. I'd like to be able to display the current page at the top (in header, for example) b...
(1) odpowiedzi
2017-01-18 22:01 React.createElement: type is invalid -- expected a string, but got: object »
I've just upgraded to Webpack 2.2 today and have been reading through their guides, which are still a work in progress it seems. I am having difficul...
(1) odpowiedzi
2017-01-17 14:01 How to link to nested routes in React Router »
Currently I am using the following code for my application. const { Router, Route, IndexRoute, Redirect, Link, IndexLink, ha...
(2) odpowiedzi
2017-01-04 23:01 Nested routes with react router v4 »
I am currently struggling with nesting routes using react router v4. The closest example was the route config in the React-Router v4 Documentation. ...
(1) odpowiedzi
2017-01-02 14:01 Link to dynamic active class? »
router for routing purpose in my react app. Mine routing is defined in given manner: <Route path={food/:cuisine/:pageNo} component={foodList} a...
(0) odpowiedzi
2017-01-02 01:01 why splice not working correctly in react? »
I am trying to delete row from my list using delete button .I do like this if (state.indexOf(action.payload) > -1) { console.log('iff----') ...
(1) odpowiedzi
2016-12-31 01:12 React TransitionGroup and React.cloneElement do not send updated props »
I am following Chang Wang's tutorial for making reusable React transitions with HOCs and ReactTransitionGroup(Part 1 Part 2) in conjunction with Huan ...
(1) odpowiedzi
2016-12-30 16:12 Call a method on componentWillReceiveProps based on previous path url »
What I am trying to achieve is the call a method based on previous path url (I am using react-router). Previous path URL looks like http://www.websi...
(1) odpowiedzi
2016-12-23 16:12 React POST to Node Server and handle JSON response »
I am new to React so I am trying to understand how all this works together. Is there a way to change the component that is rendering for another comp...
(1) odpowiedzi
2016-12-22 03:12 React-router not matching query string »
My routes are defined as follows: <Router history={browserHistory}> <Route path="/" component={App}> <Route path="experiments...
(2) odpowiedzi
2016-12-19 23:12 ReactJS + React Router: How to reference a specific object to pass down as properties? »
I currently have a table and each cell has a button. Upon clicking the button, based on that particular day (Monday or Tuesday), class (class 1 or cla...
(1) odpowiedzi
2016-12-18 15:12 Match API and isomorphic routes »
I have an isomorphic app running on express: app.get('*', (req, res) => { match( { routes, location: req.url }, (error, redirec...
(2) odpowiedzi
2016-12-17 01:12 How to push props to a new page on button click? »
I currently have a table and each cell has a button. Upon clicking the button, based on that particular day (Monday or Tuesday), class (class 1 or cla...
(4) odpowiedzi
2016-12-05 06:12 What does {...props} in this React Component mean? »
Just starting out with react-router. I'm using react-router@next (version 4) when I came across this bit of code in github (at the bottom). I have w...
(2) odpowiedzi
2016-12-04 02:12 How do I redirect a user to a route when a certain Redux action is dispatched? »
I have a React + Redux + React Router web app that uses websockets for communication with the backend server. Let's say a user is halfway through usi...
(3) odpowiedzi
2016-11-19 00:11 Seeing empty page after deployed to S3 with React Route »
I build a SPA with React and React Router. I'm also using https://github.com/facebookincubator/create-react-app as it's a really simple application. W...
(1) odpowiedzi
2016-11-16 09:11 React with Adonis »
I am trying to integrate React with Adonis Js to build an SPA. Adonis handles routing to an SPA by Route.any('*', function * (request, response) { y...
(1) odpowiedzi
2016-11-10 10:11 How can I access a single view in on a SPA? »
I have a react-js application with the following structure: public src components - Books.js - BookShow.js - App.css - App.js - index...
(1) odpowiedzi
2016-10-31 15:10 getComponent doesn't render component »
I try to set up dynamic routing with react-router and webpack. require.ensure function loads module, but getComponent method doesn't render component....
(2) odpowiedzi
2016-10-27 02:10 How to hide component instead of unmounting it? »
I have my routes defined like this: <Route component={App}> <IndexRoute component={Main}/> <Route path="/foo" component={Foo...
(1) odpowiedzi
2016-10-24 13:10 In react router v4 how does one link to a fragment identifier? »
Given the very simple page (having assumed React and react-router@4 have been imported): // Current location: example.com/about <Link to="/about/#...
(0) odpowiedzi
2016-10-22 19:10 Django back end with a React front end »
The idea I've started off building this social media kind of website, which includes the basic social media pages such as a profile, a status feed, s...
(2) odpowiedzi
2016-10-20 23:10 React Router - Is there an 'easier' way to route to a new path besides using Context? »
Is there an easier or perhaps more recent way to be able to, for instance, click on a button and onClick of that button, reroute to a new path? .......
(1) odpowiedzi
2016-10-13 09:10 Reactjs Route Doesn't Return Correct Result »
I have 3 apps with this structure: import React from 'react' export default React.createClass({ render() { return <div>Hey App1!&lt...
(1) odpowiedzi