Archives : February-2016

I’m using react-redux and standard react-routing. I need redirect after definite action. For example: I have registration a few steps. And after action: function registerStep1Success(object) { return { type: REGISTER_STEP1_SUCCESS, status: object.status }; } I want him redirect to page with registrationStep2. How to do it? p.s. In history browser ‘/registrationStep2’ has never been. This ..

Read more

I’m new to using ReactJS and react-router. I want a clickable table row and something like the following setup: <Link to=“#”> <tr> <td>{this.props.whatever1}</td> <td>{this.props.whatever2}</td> <td>{this.props.whatever3}</td> </tr> </Link> but I know you can’t put <a> tags between the <tbody> and <tr> tags. How else can I accomplish this? PS: I prefer not to use jQuery if ..

Read more

How can I define a route in my routes.jsx file to capture the __firebase_request_key parameter value from a URL generated by Twitter’s single sign on process after the redirect from their servers? http://localhost:8000/#/signin?_k=v9ifuf&__firebase_request_key=blablabla I tried with the following routes configuration, but the :redirectParam is not catching the mentioned param: <Router> <Route path=”/” component={Main}> <Route path=”signin” ..

Read more

I got a issue here with methods firing not in the correct order. I can’t figure out how to make the this.props.history.pushState(null, ‘/authors’); wait in the saveAuthor() method. Help will be greatly appreciated. import React, { Component } from ‘react’; import AuthorForm from ‘./authorForm’; import { History } from ‘react-router’; const source = ‘http://localhost:3000/authors’; // ..

Read more

I would like to retrieve the current params outside of a component, and as far as I can tell React Router does not provide a convenient way of doing that. Sometime back before 0.13 the router had getCurrentParams() which is what I used to use. Now the best thing I can figure out is: // ..

Read more